Skip to content

Commit

Permalink
no need to call wait in real-time web example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 30, 2014
1 parent d55ca4f commit 6cecd12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -426,8 +426,8 @@ often result from continuation-passing style.
}
);

# Handle exceptions in steps and start event loop if necessary
$delay->catch(sub { $c->render_exception(pop) })->wait;
# Handle exceptions in steps
$delay->catch(sub { $c->render_exception(pop) });
};

app->start;
Expand Down

0 comments on commit 6cecd12

Please sign in to comment.