Skip to main content

runAsSystem

@webda/core


Function: runAsSystem()

runAsSystem<T>(run, attach?): T

Defined in: packages/core/src/contexts/execution.ts:68

Run this function as system

Inside it, useContext() returns a new GlobalOperationContext: an operation context that callOperation accepts

Type Parameters​

T​

T

Parameters​

run​

() => T

the function to run

attach?​

IContextAware[] = []

whether to attach to current context

Returns​

T

the list of results