mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-07 05:08:51 -04:00
separated state machine generation into an abstract class
This commit is contained in:
parent
c3532507f3
commit
9b0a9b7ad2
12 changed files with 379 additions and 286 deletions
|
|
@ -11,6 +11,10 @@ public interface Future<R> {
|
|||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
static <R> Future<R> ret(R r){
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
final class Pending{
|
||||
private static final Pending INSTANCE = new Pending();
|
||||
private Pending(){}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue