UNPKG
@ezdevlol/memfs
Version:
latest (4.23.0)
4.23.0
In-memory file-system with Node's fs API.
github.com/streamich/memfs
streamich/memfs
@ezdevlol/memfs
/
lib
/
thingies
/
concurrency.d.ts
4 lines
(3 loc)
•
175 B
TypeScript
View Raw
1
2
3
4
import
type
{
Code
}
from
'./types'
;
/** Limits concurrency of async code. */
export
declare
const
concurrency
:
(
limit
:
number
) =>
<T =
unknown
>
(
code
:
Code
<T>
) =>
Promise
<T>;