runInWork | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/whdbrunInWorkFunction runInWorkrunInWork<T>(func: () => T | Promise<T>, options?: WorkOptions): Promise<T>Run a function inside work 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 inside work and commit it