Function runInWork
- runInWork<T>(
func: () => T | Promise<T>,
options?: WorkOptions & { autoRetry?: boolean; maxRetries?: number },
): Promise<T>Type Parameters
- T
Parameters
- func: () => T | Promise<T>
Optionaloptions: WorkOptions & { autoRetry?: boolean; maxRetries?: number }
Returns Promise<T>
Run a function inside work and commit it