用这种方法,客户机代码向能处理其所发消息的实体列表发送消息或命令。
With this approach, the client code sends a message or a command to a list of entities able to process such a message.
从命令行中同时异步运行多个命令,是处理您自己的任务集的好方法。
Running multiple commands simultaneously and asynchronously from the command line is a great way to juggle your own set of tasks.
它与计时器解决方案的主要差异是命令排队等待,如果必须把处理发送回队列等待下一次运行,那么execute方法返回True。
The main differences with the timer solution are that commands are queued and the execute method returns True if the process must be sent back to the queue for another round.
应用推荐