Correct arguments for the callback for OnFinish event #4257
Replies: 1 comment 1 reply
function onFinish(Swoole\Server $server, int $task_id, mixed $data) |
1 reply
Answer selected by
sy-records
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
On https://www.swoole.co.uk/docs/modules/swoole-server-sendmessage
callback takes three arguments, as below:
But, on https://www.swoole.co.uk/docs/modules/swoole-server-task
callback takes entirely different arguments, as:
Exactly how many arguments and which arguments can i use for callback for onFinish event ?
All reactions