fast-nail-55400
06/17/2020, 8:49 PMfast-nail-55400
06/17/2020, 8:49 PMcontext.workunit_store and then use start_workunit and complete_workunit?witty-crayon-22786
06/17/2020, 9:16 PMfast-nail-55400
06/17/2020, 9:17 PMhundreds-breakfast-49010
06/17/2020, 9:18 PMwith_workunits function defined in workunit_store/src/lib.rsfast-nail-55400
06/17/2020, 9:18 PMfast-nail-55400
06/17/2020, 9:19 PMwith_workunits helper. Should it?)hundreds-breakfast-49010
06/17/2020, 9:21 PMhundreds-breakfast-49010
06/17/2020, 9:21 PMfast-nail-55400
06/17/2020, 9:22 PMscope_task_workunit_state is to scope panics?hundreds-breakfast-49010
06/17/2020, 9:26 PMwitty-crayon-22786
06/17/2020, 9:27 PMtask here is the rust async equivalent of a threadwitty-crayon-22786
06/17/2020, 9:27 PMtask is a tokio task.witty-crayon-22786
06/17/2020, 9:28 PMwitty-crayon-22786
06/17/2020, 9:29 PMhundreds-breakfast-49010
06/17/2020, 9:29 PMwitty-crayon-22786
06/17/2020, 9:29 PMwitty-crayon-22786
06/17/2020, 9:30 PMhundreds-breakfast-49010
06/17/2020, 9:30 PMfast-nail-55400
06/17/2020, 9:30 PMwitty-crayon-22786
06/17/2020, 9:31 PMwitty-crayon-22786
06/17/2020, 9:31 PMhundreds-breakfast-49010
06/17/2020, 9:31 PMhundreds-breakfast-49010
06/17/2020, 9:32 PMwith_workunit . there's only one other place in the code where we actually create workunits without using that helper, in node.rswitty-crayon-22786
06/17/2020, 9:32 PMhundreds-breakfast-49010
06/17/2020, 9:33 PMwitty-crayon-22786
06/17/2020, 9:33 PMhundreds-breakfast-49010
06/17/2020, 9:33 PMwitty-crayon-22786
06/17/2020, 9:33 PMwith_workunit . but yea, could call it a low-level API.hundreds-breakfast-49010
06/17/2020, 9:34 PMwith_workunit, you might as wellwitty-crayon-22786
06/17/2020, 9:34 PMhundreds-breakfast-49010
06/17/2020, 9:34 PMwitty-crayon-22786
06/17/2020, 9:34 PMhundreds-breakfast-49010
06/17/2020, 9:34 PMfast-nail-55400
06/17/2020, 9:35 PMfast-nail-55400
06/17/2020, 9:35 PMhundreds-breakfast-49010
06/17/2020, 9:35 PMhundreds-breakfast-49010
06/17/2020, 9:36 PMinner member wrapped in an Arc<Mutex<_>>hundreds-breakfast-49010
06/17/2020, 9:37 PM.clone() on a WorkunitStore is a (relatively) cheap operation. the cost comes from interacting with the Arc<Mutex<_>> when you call methods on WorkunitStore that get proxied to innerfast-nail-55400
06/17/2020, 9:39 PM