Type alias StartFn<T, This>

StartFn<T, This>: AsyncStart<T, This> | SyncStart<T, This>

A synchronous or asynchronous initializing function for use with the start() function or a job's .start() method.

Type Parameters

  • T

    The type the job will end up returning

  • This = void

    The type of this the function accepts, if using two-argument start(). Defaults to void (for one-argument start()).