File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/runtime/node/internal/timers Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Timeout } from "./timeout.ts";
33export async function * setIntervalFallbackPromises < T = void > (
44 delay ?: number ,
55 value ?: T ,
6- ) : AsyncIterable < T > {
6+ ) : NodeJS . AsyncIterator < T > {
77 yield value as T ;
88}
99
Original file line number Diff line number Diff line change 1+ import { createNotImplementedError } from "../../../_internal/utils.ts" ;
2+
13export class Timeout < TArgs extends any [ ] > implements NodeJS . Timeout {
24 constructor ( callback : TimerHandler , args : TArgs ) {
35 if ( typeof callback === "function" ) {
46 callback ( ...args ) ;
57 }
68 }
9+ close ( ) : this {
10+ throw createNotImplementedError ( "node.timers.timeout.close" ) ;
11+ }
12+ _onTimeout ( ...args : any [ ] ) : void {
13+ throw createNotImplementedError ( "node.timers.timeout._onTimeout" ) ;
14+ }
715 ref ( ) {
816 return this ;
917 }
You can’t perform that action at this time.
0 commit comments