put task to waiting thread detail:
put task to waiting thread detail:
a security ways ready new task
ready new task success if Boolean is true
None
if predicate fail or no task under waiting
Some(task)
if predicate success, task
represent the task only just waiting
execute need wait task, also replaced by new task.You can create multi Dispatch if you willing(eg. for preference)
detail ability: 1. put a task to wait thread and execute if time-on 2. cancel the waiting task
Notice: task should be recover by
Manage
if stop, also its matter ofManage