Skip to content

Commit

Permalink
Add info on the interface method
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorial1024 committed Nov 30, 2024
1 parent d28182c commit 8c16b12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ $task = new AsyncTask(function () use ($target) {
fclose($fp);
});

// if you are using interfaces, then it is just like this:
// $task = new AsyncTask(new WriteToFileTask($target, $message));

// then start it.
$task->start();

Expand Down

0 comments on commit 8c16b12

Please sign in to comment.