This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
use Coro; | |
use Mojo::IOLoop; | |
# Magical class for calling a method non-blocking (with a closure) and | |
# rescheduling the current coroutine until it is done | |
package with::coro { | |
use Coro; |