Pike programming language

Top Concurrent Concurrent.Promise
➤ Concurrent.Promise()->try_failure() Concurrent.State ➤

Method Concurrent.Promise()->try_success()


Method try_success

local this_program(< ValueType >) try_success(ValueType|zero value)

Description

Fulfill the Future if it hasn't been fulfilled or failed already.

Parameter value

Result of the Future.

Mark the Future as fulfilled if it hasn't already been fulfilled or failed, and in that case schedule the on_success() callbacks to be called as soon as possible.

See also

success(), try_failure(), failure(), on_success()

Extracted from as of .