Alias for synchronize.
Alias for synchronize.
Synchronize, blocking for the result.
Synchronize, blocking for the result.
Synchronize (discarding the value), and then invoke the given closure.
Synchronize (discarding the value), and then invoke the given closure. Convenient for loops.
Synonym for map()
.
Synonym for map()
. Useful in combination with Offer.choose()
and Offer.select()
Like {{map}}, but to a constant (call-by-name).
Like {{map}}, but to a constant (call-by-name).
Synchronize on this offer indefinitely, invoking the given {{f}} with each successfully synchronized value.
Synchronize on this offer indefinitely, invoking the given {{f}} with each successfully synchronized value. A receiver can use this to enumerate over all received values.
Map this offer of type {{T}} into one of type {{U}}.
Map this offer of type {{T}} into one of type {{U}}. The translation (performed by {{f}}) is done after the {{Offer[T]}} has successfully synchronized.
Java-friendly analog of const()
.
Java-friendly analog of const()
.
Java-friendly analog of const()
.
Java-friendly analog of const()
.
An offer that, when synchronized, attempts to synchronize {{this}} immediately, and if it fails, synchronizes on {{other}} instead.
An offer that, when synchronized, attempts to synchronize {{this}} immediately, and if it fails, synchronizes on {{other}} instead. This is useful for providing default values. Eg.:
offer orElse Offer.const { computeDefaultValue() }
Synchronizes this offer, returning a future representing the result of the synchronization.
Synchronizes this offer, returning a future representing the result of the synchronization.
Synchronize this offer, blocking for the result.
Synchronize this offer, blocking for the result. See {{sync()}} and {{com.twitter.util.Future.apply()}}
Abstract
Offer
class for Java compatibility.