vibe.d beta banner
get vibe.d
0.10.0

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

Function setTaskCreationCallback

Sets a callback that is invoked whenever new task is created.

void setTaskCreationCallback (
  nothrow @safe void function(ref TaskCreationInfo) func
);

The callback is guaranteed to be invoked before the one set by setTaskEventCallback for the same task handle.

This function is useful mostly for implementing debuggers that analyze the life time of tasks, including task switches. Note that the callback will only be called for debug builds.

Authors

Sönke Ludwig

Copyright

© 2012-2019 RejectedSoftware e.K.

License

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