forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
future: add repeat_until_value(): repeat an action until it returns a…
… value Given an AsyncAction functor a that returns future<optional<T>>, repeat_until_value(a) will call a repeatedly until it returns an engaged optional, and return the value as a future<T>. This is useful for similar to repeat(), except that the "yes" return (indicated by an engaged optional) also has an associated value, which is returned to the caller.
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters