A supervisor algorithm for distributed continuations