Change setTaskEventCallback to take a callback with Task instead of Fiber.