Add promise support for event onTaskUpdated