Unlike JavaScript, the Async class of this library contains the getId() method that aims to determine where the promise is queued.
getId()
$async = new Async(callback); var_dump($async->getId());
Output:
145
Last updated 2 years ago