Compose complicated multithreaded workflows