0.0.8 • Published 1 year ago

@zimtsui/startable-adaptor v0.0.8

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

adaptor

Npm package version

adaptor 函数在当前线程启动一个 Startable 对象,并捕获 SIGTERM/SIGINT 信号优雅退出,还可以设置超时时间。

interface Adaptor {
    (
        daemon: Startable,
        startTimeout?: number,
        stopTimeout?: number,
    ): void;
}
0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago