Type alias SyncStart<T, This>

SyncStart<T, This>: ((this: This, job: Job<T>) => OptionalCleanup)

A synchronous start function returns void or a CleanupFn. It runs immediately and gets passed the newly created job as its first argument.

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()).

Type declaration