vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function runWorkerTaskDistH

Runs a new asynchronous task in all worker threads and returns the handles.

void runWorkerTaskDistH(HCB, FT, ARGS...) (
  scope HCB on_handle,
  FT func,
  auto ref ARGS args
)
if (isFunctionPointer!FT && isNothrowCallable!(FT, ARGS));

void runWorkerTaskDistH(HCB, FT, ARGS...) (
  TaskSettings settings,
  scope HCB on_handle,
  FT func,
  auto ref ARGS args
)
if (isFunctionPointer!FT && isNothrowCallable!(FT, ARGS));

on_handle is a callble that takes a Task as its only argument and is called for every task instance that gets created.

See also

runWorkerTaskDist

Authors

Sönke Ludwig

Copyright

© 2012-2020 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.