use of co.paralleluniverse.common.test.TestInterface2 in project quasar by puniverse.
the class DynamicallyLoadedSuspendable method test.
@Suspendable
public void test(ArrayList<String> results) {
results.add("a");
TestInterface referencedSuspend = new ReferencedSuspendable();
TestInterface2 indirectSuspend = new IndirectSuspendable();
results.add("b");
try {
results.add("c");
Fiber.park();
results.add("d");
} catch (SuspendExecution ex) {
}
results.add("e");
referencedSuspend.test(results);
results.add("f");
indirectSuspend.test(results, referencedSuspend);
results.add("g");
while (true) {
results.add("h");
indirectSuspend.test(results, referencedSuspend);
results.add("i");
}
}
Aggregations