From 8c16b12aee5919ea5c9a8779262f0dd82b44635a Mon Sep 17 00:00:00 2001 From: Vincent Wong Date: Sat, 30 Nov 2024 13:40:08 +0800 Subject: [PATCH] Add info on the interface method --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b8803fb..fe78fe8 100644 --- a/README.md +++ b/README.md @@ -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();