【文件属性】:
文件名称:caine:支持参与者同时处理队列
文件大小:20KB
文件格式:ZIP
更新时间:2021-06-16 07:53:23
Python
坚
支持参与者同时处理队列
安装
pip install caine
用法
from caine import SupportingActor
# Print the name attribute of the instance and the message
def deliver(message, instance_attributes):
print '%s says, "%s"' %(instance_attributes['name'], message)
# Print end scene
def end_scene(instance_attributes):
print "End scene."
# Create my_actor which executes deliver using messages in its inbox
# and execu
【文件预览】:
caine-master
----MANIFEST.in(42B)
----requirements.txt(0B)
----caine()
--------caine.pyc(12KB)
--------__init__.pyc(140B)
--------__init__.py(20B)
--------caine.py(26KB)
----examples()
--------1_supporting_cast.py(1KB)
--------2_collector.py(1KB)
--------5_adding_actors_to_cast.py(1KB)
--------4_immediate_cut.py(1KB)
--------3_timeout.py(990B)
--------0_supporting_actor.py(1KB)
--------6_relay.py(3KB)
----README.txt(6KB)
----setup.py(448B)
----README.md(6KB)
----CHANGES.txt(1KB)
----MANIFEST(125B)