Skip to content
Prev Previous commit
Next Next commit
fixup: run callback with process.nextTick
  • Loading branch information
vadzim committed Apr 15, 2020
commit e821b987ccc31c5fcf92c1f558d31f0400baa565
2 changes: 1 addition & 1 deletion lib/internal/streams/from.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function from(Readable, iterable, opts) {
} catch (e) {
error = error || e;
} finally {
cb(error);
process.nextTick(() => cb(error));
Comment thread
ronag marked this conversation as resolved.
Resolved
}
};
Comment thread
vadzim marked this conversation as resolved.
Resolved

Expand Down