runInSeparateWork | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/whdbrunInSeparateWorkFunction runInSeparateWorkrunInSeparateWork<T>( func: () => T | Promise<T>, options?: WorkOptions,): Promise<T>Run a function in a separate work object and commit it Type ParametersTParametersfunc: () => T | Promise<T>Optionaloptions: WorkOptionsReturns Promise<T>ThrowsIf the function throws, the work is rolled back and the exception is rethrown SettingsMember VisibilityProtectedInheritedThemeOSLightDarkWebHare Platform SDKLoading...
Run a function in a separate work object and commit it