Turn callbacks into tasks