MadelineProtoDocs/docs/PHPInternal/danog/MadelineProto/Async/AsyncConstruct.md

924 B

title: danog\MadelineProto\Async\AsyncConstruct: Async constructor class. description: Manages asynchronous construction and wakeup of classes

danog\MadelineProto\Async\AsyncConstruct

Back to index

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

Generated by danog/phpdoc