Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 27, 2021
1 parent d4ab0dc commit 604eddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ use Spatie\Fork\Fork;

$results = Fork::new()
->run(
fn () => (new Api)->fetchData($userId = 1),
fn () => (new Api)->fetchData($userId = 2),
fn () => (new Api)->fetchData($userId = 3),
fn () => (new Api)->fetchData(userId: 1),
fn () => (new Api)->fetchData(userId: 2),
fn () => (new Api)->fetchData(userId: 3),
);

$results[0]; // fetch data of user 1
Expand Down

0 comments on commit 604eddc

Please sign in to comment.