1
0
mirror of https://github.com/danog/amp.git synced 2024-12-04 02:17:54 +01:00
amp/lib
Aaron Piotrowski dd0f01f4db
Add onDisposal() and onCompletion() to Stream
onCompletion callbacks are invoked if complete() or fail() is called before the stream is disposed.

onDisposal callbacks are invoked if the stream is disposed before being completed or failed.

Forbid failing a stream with DisposedException.
2020-09-24 12:53:31 -05:00
..
Internal Add onDisposal() and onCompletion() to Stream 2020-09-24 12:53:31 -05:00
Loop Enforce timer interval as minimum time to execution (#319) 2020-07-14 21:45:35 +02:00
AsyncGenerator.php Add onDisposal() and onCompletion() to Stream 2020-09-24 12:53:31 -05:00
CallableMaker.php Add psalm static analysis on level 6 2020-03-28 12:23:46 +01:00
CancellationToken.php Add psalm static analysis on level 6 2020-03-28 12:23:46 +01:00
CancellationTokenSource.php Add psalm static analysis on level 6 2020-03-28 12:23:46 +01:00
CancelledException.php Apply PSR-2 2018-06-18 20:00:01 +02:00
CombinedCancellationToken.php Add psalm static analysis on level 6 2020-03-28 12:23:46 +01:00
Coroutine.php Increase psalm error level to level 4 2020-03-28 20:27:42 +01:00
Deferred.php Fix Psalm errors 2020-09-24 12:53:30 -05:00
Delayed.php Return self from Delayed ref/unref 2020-04-23 23:43:48 -05:00
DisposedException.php Rename yield() to emit() 2020-09-24 12:53:30 -05:00
Emitter.php Add Streams 2020-09-24 12:53:27 -05:00
Failure.php Increase psalm error level to level 4 2020-03-28 20:27:42 +01:00
functions.php Add Promise\succeed() and Promise\fail() 2020-09-24 12:53:31 -05:00
InvalidYieldError.php Apply PSR-2 2018-06-18 20:00:01 +02:00
Iterator.php Add Streams 2020-09-24 12:53:27 -05:00
LazyPromise.php Increase psalm error level to level 3 2020-03-28 21:55:44 +01:00
Loop.php Increase psalm error level to level 2 2020-03-28 22:20:44 +01:00
MultiReasonException.php Note method to retreive array of exceptions 2019-03-02 09:22:06 -06:00
NullCancellationToken.php Apply PSR-2 2018-06-18 20:00:01 +02:00
Producer.php Add Streams 2020-09-24 12:53:27 -05:00
Promise.php Cover examples with psalm and add @psalm-yield to Promise 2020-04-04 15:49:26 +02:00
Stream.php Add onDisposal() and onCompletion() to Stream 2020-09-24 12:53:31 -05:00
StreamSource.php Add onDisposal() and onCompletion() to Stream 2020-09-24 12:53:31 -05:00
Struct.php Increase psalm error level to level 2 2020-03-28 22:20:44 +01:00
Success.php Rethrow exceptions from destructors 2020-09-24 12:53:29 -05:00
TimeoutCancellationToken.php Provide useful exception trace in TimeoutCancellationToken (#303) 2020-04-04 17:05:26 +02:00
TimeoutException.php Fix invalid types in doc comments 2020-03-28 14:32:53 +01:00