The #close()
operation should be idempotent.
The #close()
operation should be idempotent. It should be no problem with closing the same object twice.
The close operation should cancel the current operation if possible. The close should throw exception only
in serious cases (for example in case of data loss, or inconsistent data)
a promise that resolves when object finishes closing
Put next value in the stream
Put next value in the stream
An thunk that allows sending data