Back to table of contents. Previous: 7. Lifetime management. Next: 9. Fibers. Advanced futures
Futures and interruption
TODO: A future, e.g., sleep(10s) cannot be interrupted. So if we need to, the promise needs to have a mechanism to interrupt it. Mention pipe’s close feature, semaphore stop feature, etc. ## Futures are single use TODO: Talk about if we have a future variable, as soon as we get() or then() it, it becomes invalid - we need to store the value somewhere else. Think if there’s an alternative we can suggest
Back to table of contents. Previous: 7. Lifetime management. Next: 9. Fibers.