diff --git a/src/DriverInterface.php b/src/DriverInterface.php index c33d16a..ec368ce 100644 --- a/src/DriverInterface.php +++ b/src/DriverInterface.php @@ -30,10 +30,13 @@ public function async(Closure|JobInterface $callback): Closure; public function defer(Closure $callback): mixed; /** - * @param array{'fnFlows': array, 'dispatchers': array} $stream + * Waits for all asynchronous operations in the stream to complete and rolls back to synchronous execution. + * + * @param array{'fnFlows': array, 'dispatchers': array} $stream The stream containing asynchronous operations to await */ public function await(array &$stream): void; + public function delay(float $seconds): void; /**