MCPcopy Index your code
hub / github.com/MALSync/MALSync / runAsync

Method runAsync

src/chibiScript/ChibiCtx.ts:29–34  ·  view source on GitHub ↗
(script: ChibiJson<any>, startState: any = null)

Source from the content-addressed store, hash-verified

27 }
28
29 async runAsync(script: ChibiJson<any>, startState: any = null) {
30 if (!this.isAsync()) {
31 throw new Error('Can not run async functions in sync context');
32 }
33 return this.getConsumer()._subroutineAsync(script, startState);
34 }
35
36 setAsyncContext(isAsync: boolean) {
37 this.async = isAsync;

Callers 11

arrayFunctions.tsFile · 0.45
ifFunction · 0.45
ifThenFunction · 0.45
ifNotReturnFunction · 0.45
asyncFunctions.tsFile · 0.45
coreFunctions.tsFile · 0.45
runCallbackFunction · 0.45
initFunction · 0.45

Calls 3

isAsyncMethod · 0.95
getConsumerMethod · 0.95
_subroutineAsyncMethod · 0.80

Tested by

no test coverage detected