Task function that can be executed. This function can return a value, a promise or another thenable.
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.
Optional
Task function that can be executed. This function can return a value, a promise or another thenable.