vibe.d beta banner
get vibe.d

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.


Sönke Ludwig


© 2012-2020 Sönke Ludwig


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