From 2645e0fd84a97f6e91985854d98df8ada574381e Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Thu, 2 Dec 2021 21:48:13 +0100 Subject: [PATCH] Fix documentation in CancellationToken --- src/CancellationToken.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CancellationToken.php b/src/CancellationToken.php index 1039484..d38cf3f 100644 --- a/src/CancellationToken.php +++ b/src/CancellationToken.php @@ -10,11 +10,11 @@ interface CancellationToken /** * Subscribes a new handler to be invoked on a cancellation request. * - * This handler might be invoked immediately in case the token has already been cancelled. Returned generators will - * automatically be run as coroutines. Any unhandled exceptions will be thrown into the event loop. + * This handler might be invoked immediately in case the token has already been cancelled. Any unhandled exceptions + * will be thrown into the event loop. * * @param \Closure(CancelledException) $callback Callback to be invoked on a cancellation request. Will receive a - * `CancelledException` as first argument that may be used to fail the operation's promise. + * `CancelledException` as first argument that may be used to fail the operation. * * @return string Identifier that can be used to cancel the subscription. */