Here are the examples of the java api play.libs.F.Promise.zip() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
18
Source : PromiseTest.java
with MIT License
from vangav
with MIT License
from vangav
@Test
public void zip() {
Promise<String> a = Promise.pure("a");
Promise<Integer> b = Promise.pure(10);
Tuple<String, Integer> ab = a.zip(b).get();
replacedertThat(ab._1).isEqualTo("a");
replacedertThat(ab._2).isEqualTo(10);
}