Type of data sent to the worker. This can only be structured-cloneable data.
Type of execution response. This can only be structured-cloneable data.
OptionalpriorityTask function priority. Lower values have higher priority.
OptionalstrategyTask function worker choice strategy.
Task function.
OptionalworkerTask function worker node keys affinity. Restricts task execution to specified worker nodes by their indices. Must contain valid indices within [0, pool max size - 1]. If undefined, task can execute on any worker node.
Task function object.