DeferredSequence.reject()method

reject(reason: unknown): void

Reject the current deferred in the sequence with an error.

  • Sends a { reason: X } to any iterators, causing for await loops to throw.