UNPKG
electron-rpc-async-queue
Version:
latest (1.2.0)
1.2.0
Async queue implementation for Electron RPC
alexandersychev.github.io/electron-rpc-wiki/
electron-rpc-async-queue
/
src
/
TaskBody.ts
10 lines
(9 loc)
•
270 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
/
*
*
*
Task body
-
async
function
which must be executed by task.
*
Generic types
:
*
A extends
any
[
]
=
any
[
]
-
arguments of
function
*
R
=
any
-
function
result
*
/
export interface TaskBody
<
A extends
any
[
]
=
any
[
]
,
R
=
any
>
{
(
...args
:
A
)
:
R
|
Promise
<
R
>
;
}