public class Dispatch {
public static Map<Object, Object> handle(Handler handler, Request req) {
- while(true) {
- try {
- return(handler.handle(req));
- } catch(Restart r) {
- handler = r;
+ try(Environment.Frame f = new Environment().frame()) {
+ while(true) {
+ try {
+ return(handler.handle(req));
+ } catch(Restart r) {
+ handler = r;
+ }
}
}
}