Function spawnZWorker

  • Spawns worker thread.

    Parameters

    • spawn: ((this) => Worker)

      Starter function returning started worker instance.

        • (this): Worker
        • Parameters

          • this: void

          Returns Worker

    • config: SpawnZWorkerConfig = {}

      Spawned worker thread configuration.

    Returns ZExecution

    New worker thread execution instance stopping the thread on abort.

Generated using TypeDoc