4 ms·
The best analogy I can give is to JavaScript promises, where you can do something once the future is resolved. In Java, this would be like the CompletableFuture
by moosingin3space 10y ago
The best analogy I can give is to JavaScript promises, where you can do something once the future is resolved. In Java, this would be like the CompletableFuture class's thenApply function -- where you can write code that picks up once the future has been resolved.
A "delimited continuation" is that basic idea of having your code pick up once a future finishes executing.