Skip to content

Commit

Permalink
📝 Add await docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matyo91 committed Sep 17, 2024
1 parent 5e6d963 commit 49e7193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DriverInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ public function async(Closure|JobInterface $callback): Closure;
public function defer(Closure $callback): mixed;

/**
* @param array{'fnFlows': array<mixed>, 'dispatchers': array<mixed>} $stream
* Waits for all asynchronous operations in the stream to complete and rolls back to synchronous execution.
*
* @param array{'fnFlows': array<mixed>, 'dispatchers': array<mixed>} $stream The stream containing asynchronous operations to await
*/
public function await(array &$stream): void;


public function delay(float $seconds): void;

/**
Expand Down

0 comments on commit 49e7193

Please sign in to comment.