karimsa/rsxjs

Add `OnLateResult` & `OnLateError` events to timeout

Opened this issue · 0 comments

Sometimes it is useful to run something after the timeout failed but then there was a real result or a real failure.

An extended interface for timeout operations:

type TimedOperation<T extends AsyncFunction<G>, R> = T & {
  results: chan<R>
  errors: chan<Error>
}