2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
title: danog\MadelineProto\Async\AsyncConstruct: Async constructor class.
|
|
|
|
description: Manages asynchronous construction and wakeup of classes
|
|
|
|
|
|
|
|
---
|
|
|
|
# `danog\MadelineProto\Async\AsyncConstruct`
|
|
|
|
[Back to index](../../../index.md)
|
|
|
|
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
|
|
|
|
|
|
Async constructor class.
|
|
|
|
|
|
|
|
Manages asynchronous construction and wakeup of classes
|
|
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
|
|
* `init(): void`
|
|
|
|
* `initAsynchronously(): \Generator`
|
|
|
|
* `inited(): bool`
|
|
|
|
* `forceInit(bool $inited): void`
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
### `init(): void`
|
|
|
|
|
|
|
|
Blockingly init.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `initAsynchronously(): \Generator`
|
|
|
|
|
|
|
|
Asynchronously init.
|
|
|
|
|
|
|
|
|
|
|
|
#### See also:
|
|
|
|
* `\Generator`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `inited(): bool`
|
|
|
|
|
|
|
|
Check if we've already inited.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `forceInit(bool $inited): void`
|
|
|
|
|
|
|
|
Mark instance as (de)inited forcefully.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$inited`: `bool` Whether to mark the instance as inited or deinited
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|