Module : lang.future

Module Overview

This module provides lang library operations on future values defined by the language specification 2019R3.

Functions

cancel

Requests cancellation of a future. This sets the cancellation flag in the strand corresponding to f. Each time that a strand yields, it will check the cancellation flag and terminate abnormally if the flag is set.