1.7.1.11 satisfies(Cond)

-spec satisfies(speculative()) -> ok.

This function declares that the current condition resolves a speculative condition. It’s a counterpart to speculative/1.

Once a condition that called satisfies(X) is resolved (with any result, including failure), the speculative condition X is resolved with the same result.

It’s recommended to call this function at the very beginning of the condition: in case of failure, this will automatically mark speculative condition as failed and notify condition dependent on it.

JavaScript license information