Skip to content

Commit

Permalink
Update async task lifecycle controls and error handling in code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Oct 3, 2024
1 parent 7bb5798 commit 42ff63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $response = fetch('/endpoint', ['client' => $client]);
$data = $response->json();

// Use the custom client with FetchPHP for async requests
$response async(fetch('/endpoint', ['client' => $client]));
$response async(fn () => fetch('/endpoint', ['client' => $client]));

$data = $response->json();

Expand Down

0 comments on commit 42ff63b

Please sign in to comment.