UNPKG
rsxjs
Version:
latest (1.0.0)
next (0.6.1-1)
1.0.0
0.6.1-1
0.6.1-0
0.6.0
0.5.6
0.5.5
0.5.4
0.5.3
0.5.3-0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1-5
0.1.1-4
0.1.1-3
0.1.1-2
0.1.1-1
0.1.1-0
0.1.0
0.0.3
0.0.1-2
0.0.1-1
0.0.1-0
Resilience Extensions for JS.
github.com/karimsa/rsxjs
karimsa/rsxjs
rsxjs
/
dist
/
mutex
/
from-async.d.ts
8 lines
(7 loc)
•
288 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** *
@file
src/mutex/from-async.ts *
@copyright
2018-present Karim Alibhai. All rights reserved. */
import
{
AsyncFunction
}
from
'../types'
;
import
{
MutexOptions
}
from
'./types'
;
export
declare
function
fromAsync<T>(
fn
:
AsyncFunction
<T>,
options
?:
MutexOptions
):
AsyncFunction
<T>;