UNPKG
for-emit-of
Version:
latest (1.4.0)
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Turn Node.js Events into Async Iterables
github.com/danstarns/for-emit-of
danstarns/for-emit-of
for-emit-of
/
dist
/
timeout.d.ts
7 lines
(6 loc)
•
229 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
Context
}
from
"./types"
;
export
declare
const
timedOut
: unique
symbol
;
export
interface
TimeoutWrapper
{
awaiter
:
Promise
<
symbol
>; }
export
declare
function
timeout
(
value
:
number
,
context
:
Context
):
TimeoutWrapper
;