Home > polyethylene > AsyncIterableBuilder > error
Makes the underlying iterable throw the given error
object.
Signature:
error(error: Error): void;
Parameter |
Type |
Description |
---|---|---|
error |
Error |
The error to be thrown by the underlying iterable |
void
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.