You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
I use async to run a function for send a event.
this my code: function myFunction(){ Yii::$app->async->run(function () { $model = new Events(); $model->Call(); }); return 'ok'; }
i want to return 'ok' when process Call(), for test i add 'sleep(5)' in Call() function, but return ok after 5 seconds
sorry for english.
The text was updated successfully, but these errors were encountered:
hi
I use async to run a function for send a event.
this my code:
function myFunction(){ Yii::$app->async->run(function () { $model = new Events(); $model->Call(); }); return 'ok'; }
i want to return 'ok' when process Call(), for test i add 'sleep(5)' in Call() function, but return ok after 5 seconds
sorry for english.
The text was updated successfully, but these errors were encountered: