# getId()

Unlike JavaScript, the Async class of this library contains the **`getId()`** method that aims to determine where the promise is queued.

```php
$async = new Async(callback);
var_dump($async->getId());
```

Output:

```
145
```
