You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2018/11/13 13:11:21 UTC
[mesos] branch master updated: Added whitespace in libprocess
README.
This is an automated email from the ASF dual-hosted git repository.
bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new 3446e0a Added whitespace in libprocess README.
3446e0a is described below
commit 3446e0a43eb16151d0f467e7034b0ca6baefda4a
Author: Benno Evers <be...@mesosphere.com>
AuthorDate: Tue Nov 13 14:10:07 2018 +0100
Added whitespace in libprocess README.
The whitespace in a table in the libprocess README
was squashed, making the table contents challenging
to read.
Review: https://reviews.apache.org/r/69327/
---
3rdparty/libprocess/README.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/3rdparty/libprocess/README.md b/3rdparty/libprocess/README.md
index 3e3d5e7..912991f 100644
--- a/3rdparty/libprocess/README.md
+++ b/3rdparty/libprocess/README.md
@@ -244,12 +244,12 @@ Future<Person> mother(const std::string& name)
Each of `Future::then()`, `Future::repair()`, and `Future::recover()` takes a callback that will be invoked after certain transitions, captured by this table:
-| Transition | `Future::*()` |
-| ------ | -------------- |
-| `READY` | `Future::then(F&&)` |
-| `FAILED` | `Future::repair(F&&)` and `Future::recover(F&&)` |
-| `DISCARDED` | `Future::recover(F&&)` |
-| Abandoned (`PENDING` and `Future::isAbandoned()`) | `Future::recover(F&&)` |
+| Transition | `Future::*()` |
+| ------------------------------------------------- | ------------------------------------------------ |
+| `READY` | `Future::then(F&&)` |
+| `FAILED` | `Future::repair(F&&)` and `Future::recover(F&&)` |
+| `DISCARDED` | `Future::recover(F&&)` |
+| Abandoned (`PENDING` and `Future::isAbandoned()`) | `Future::recover(F&&)` |
`Future::then()` allows you to _transform_ the type of the `Future` into a new type but both `Future::repair()` and `Future::recover()` must return the same type as `Future` because they may not get executed! Here's an example using `Future::recover()` to handle a failure: