WritableStream.isClosed

Returns true if either you closed it or if the receiving end closed their side, indicating they don't want any more data.

Meta