close
and
- abort
to be called, in cases where the producer aborts the stream while it is in the
- "closing"
state. Notably, since a stream always spends at least one turn in the "closing"
- state, code like ws.close(); ws.abort(...);
will cause both to be called, even if the close
- method itself has no asynchronous behavior. A well-designed underlying sink object should be able to deal with
- this.
-