| 74 | } |
| 75 | |
| 76 | std::function<int(VoidContextPtr)> makeTaskWithBlock(TaskId taskId, std::atomic<bool>* blockFlag) |
| 77 | { |
| 78 | return [this, taskId, blockFlag](VoidContextPtr ctx)->int |
| 79 | { |
| 80 | taskFunc(ctx, taskId, blockFlag, ""); |
| 81 | return 0; |
| 82 | }; |
| 83 | } |
| 84 | |
| 85 | std::function<int(VoidContextPtr)> makeTaskWithException(TaskId taskId, std::string error) |
| 86 | { |