Completed
Push — master ( f2f9ef...8d6f66 )
by Fike
56s queued 19s
created

lib/Schema/Virtual/Interface/IExecutor.js   A

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 1
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 1
rs 10
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
/**
2
 * Class for user code execution. Executes code in context of
3
 * {@see IExecutionContext}, passing it as `this`
4
 *
5
 * @interface IExecutor
6
 */
7
8
/**
9
 * @function IExecutor#execute
10
 *
11
 * @template TReturnType
12
 *
13
 * @param {Function.<TReturnType>} callable
14
 * @param {*[]} [args]
15
 *
16
 * @return {TReturnType|*}
17
 */
18
19
/**
20
 * @function IExecutor#promise
21
 *
22
 * @template TReturnType
23
 *
24
 * @param {Function.<TReturnType>} callable
25
 * @param {*[]} [args]
26
 *
27
 * @return {Thenable.<TReturnType|Error|*>}
28
 */
29
30
/**
31
 * @function IExecutor#runHandler
32
 *
33
 * @param {THandler} handler
34
 * @param {*[]} [args]
35
 * @param {CancellationToken} [token]
36
 * @param {int} [tokenArg] Index of cancellation token argument in arguments
37
 *   array
38
 */
39
40
/**
41
 * @function IExecutor#getContext
42
 *
43
 * @return IExecutionContext
44
 */
45