Create sync/async task with a custom thread pool