public interface FinishContext
Frameworkto manage the async tasks within a finish block. Think of this as being like the area within the finish.
Note that this is an interface, not a class. Because of this, other classes (namely, ThreadFramework.ThreadFinishContext and ExecutorFramework.ExecutorFinishContext) can implement this interface. It also means that those classes will have access to the default forAsync method that you write here.
You should not modify this file until you get to Part 3C. When you get there,
you can test it with
|Modifier and Type||Method and Description|
Should run a task asynchronously.
Should spawn an asynchronous task for each element in iterable.
void async(Runnable body)
E- the type of element used with each iteration
iterable- the iterable with the values to go through
body- the function to run on each iteration