Documents for @litert/utils-async
    Preparing search index...

    A controller class for asynchronous fiber execution.

    User can control the fiber execution by aborting it, hibernating it, or resuming it, and of course, waiting for it to finish.

    Type Parameters

    • T = null
    Index

    Constructors

    Properties

    data: T

    The data of the fiber, used to store and swap data between fiber and the controller.

    Methods

    • Abort the fiber execution by sending an abort signal.

      The fiber execution should listen to the signal and quit its execution immediately when the signal is received, if you wanna make the fiber execution controllable with the abort signal.

      Returns void