Scheduler.Screate ~max_domains () creates a scheduler that spawns worker threads on no more than max_domains domains.
stop t waits for pending tasks to complete and joins all worker domains. Attempting to schedule new tasks after calling stop will raise.
During stop, idle workers will not attempt to steal asynchronous tasks.