文件名称:superprobe:管理 SuperAgent 任务的框架
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-29 05:32:16
JavaScript
超级探针 管理任务的简单框架 创建一堆探测器,为每个探测器分配任务,然后将它们分配到太空! 使用示例 var superprobe = require ( 'superprobe' ) ; var probe = superprobe . probe ( ) ; probe . tasks . add ( function ( agent , done ) { agent . get ( 'http://api.openweathermap.org/data/2.5/weather' ) . query ( { q : 'seattle,wa' } ) . end ( done ) ; } ) ; probe . dispatch ( function ( results ) { var weather = results [ 0 ] ; } ) ;
【文件预览】:
superprobe-master
----.gitignore(597B)
----package.json(945B)
----src()
--------container.js(460B)
--------tasks.js(779B)
--------index.js(38B)
--------probe.js(1KB)
--------station.js(187B)
--------task.js(647B)
----Gruntfile.js(1KB)
----LICENSE(1KB)
----index.js(34B)
----README.md(514B)
----test()
--------general.js(4KB)