mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Expose GuardedStream.
This commit is contained in:
parent
4df11c1932
commit
166c4de493
@ -192,6 +192,7 @@ export * from './util/locking/WrappedExpiringResourceLocker';
|
||||
// Util
|
||||
export * from './util/AsyncHandler';
|
||||
export * from './util/ContentTypes';
|
||||
export * from './util/GuardedStream';
|
||||
export * from './util/HeaderUtil';
|
||||
export * from './util/PathUtil';
|
||||
export * from './util/QuadUtil';
|
||||
|
@ -25,9 +25,9 @@ interface StoredErrorStream extends NodeJS.EventEmitter {
|
||||
}
|
||||
|
||||
/**
|
||||
* A stream that is guarded.
|
||||
* This means that if this stream emits an error before a listener is attached,
|
||||
* it will store the error and emit it once a listener is added.
|
||||
* A stream that is guarded from emitting errors when there are no listeners.
|
||||
* If an error occurs while no listener is attached,
|
||||
* it will store the error and emit it once a listener is added (or a timeout occurs).
|
||||
*/
|
||||
export type Guarded<T extends NodeJS.EventEmitter> = T & Guard;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user