Closed ging-dev closed 4 months ago
Wrapping a callback function with async() only makes sense when combined with await() or we want to return a promise. gc_collect_cycles() is a blocking function and wrapping async() does not make it non-blocking.
async()
await()
gc_collect_cycles()
See: https://github.com/laravel/reverb/pull/195#issuecomment-2132613234
Wrapping a callback function with
async()
only makes sense when combined withawait()
or we want to return a promise.gc_collect_cycles()
is a blocking function and wrappingasync()
does not make it non-blocking.See: https://github.com/laravel/reverb/pull/195#issuecomment-2132613234