UNPKG
@jsdsl/semaphore
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.0
A Promise-based semaphore implementation.
github.com/jsdsl/semaphore
jsdsl/semaphore
@jsdsl/semaphore
/
.d.ts
/
semaphore-lock.d.ts
10 lines
(9 loc)
•
284 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
declare
class
SemaphoreLock
{
protected
readonly
id
:
string
;
protected
releasePromise
:
Promise
<
string
>;
protected
releaseFunction
:
(
id
:
string
) =>
void
;
constructor
(
id
:
string
);
getID
():
string
;
release
():
void
;
waitForRelease
():
Promise
<
string
>; }