Function Thread

  • Class decorator factory. exposes an instance of the decorated class as Worker Thread.

    Returns ((constructor) => void)

    A class constructor decorator.

      • (constructor): void
      • Parameters

        • constructor: (new () => any)
            • new (): any
            • Returns any

        Returns void

    Example

    ExampleWorker Thread:

    import { Thread } from '@sgrud/core';

    ⁠@Thread()
    export class ExampleWorker {}

    See

    Spawn

Generated using TypeDoc