Skip to content

Latest commit

 

History

History
59 lines (29 loc) · 1.13 KB

polyethylene.asynciterablebuilder.error.md

File metadata and controls

59 lines (29 loc) · 1.13 KB

Home > polyethylene > AsyncIterableBuilder > error

AsyncIterableBuilder.error() method

Makes the underlying iterable throw the given error object.

Signature:

error(error: Error): void;

Parameters

Parameter

Type

Description

error

Error

The error to be thrown by the underlying iterable

**Returns:**

void

Remarks

Any values that were given with value will be yielded before the error is thrown.

Calling value or done after calling this method or calling this method after calling done will act as a no-op.