【文件属性】:
文件名称:js-ko-semaphore:淘汰赛的独家观察
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-02 08:44:38
JavaScript
js-ko-信号量
淘汰赛的独家观察
执照
用法
对象将自动插入到淘汰赛中,但可以在 noConflict 的情况下被删除
mutex = ko . mutex . noConflict ( ) ;
semaphore = ko . semaphore . noConflict ( ) ;
互斥体
mutex = ko . mutex ( ) ;
if ( mutex . try_lock ( ) ) {
// Successfully taken...
// Aliased to take...
mutex . unlock ( ) ;
// Aliased to release...
}
mutex . subscribe ( function ( taken ) {
// State changed to taken...
} ) ;
信
【文件预览】:
js-ko-semaphore-master
----.travis.yml(43B)
----package.json(1KB)
----readme.md(1KB)
----test()
--------semaphore.test.js(3KB)
--------setup.js(501B)
----LICENSE(485B)
----semaphore.js(5KB)
----.gitignore(2KB)
----.jshintrc(6KB)
----.gitattributes(70B)