> For the complete documentation index, see [llms.txt](https://venndev.gitbook.io/vapm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://venndev.gitbook.io/vapm/coroutinegen/awaitgroup.md).

# AwaitGroup

**Interface:**

```php
 /**
  * @param int $count
  * @return void
  *
  * This function is used to add the count to the group
  */
 public function add(int $count): void;

 /**
  * @return Generator
  *
  * This function is used to decrement the count
  */
 public function done(): Generator;

 /**
  * @return bool
  *
  * This function is used to check if the count is zero
  */
 public function isDone(): bool;

 /**
  * @return int
  *
  * This function is used to get the count
  */
 public function getCount(): int;

 /**
  * @return void
  *
  * This function is used to wait for the count to be zero
  */
 public function reset(): void;
```
