Sets a callback that is invoked whenever new task is created.
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.