文件名称:gocsp-timeout
文件大小:2KB
文件格式:ZIP
更新时间:2024-07-30 23:46:01
JavaScript
gocsp-超时 超时定时器 用法 var go = require ( 'gocsp-go' ) var select = require ( 'gocsp-select' ) var timeout = require ( 'gocsp-timeout' ) go ( function * ( ) { yield timeout ( 1000 ) // sleep for a while yield select ( function ( s ) { s ( go ( function * ( ) { // ... yield timeout ( 50 ) // ... } ) , function ( ) { console . log (
【文件预览】:
gocsp-timeout-master
----.gitignore(13B)
----package.json(372B)
----index.js(388B)
----test.js(643B)
----README.md(570B)
----example.js(457B)