Mojolicious is a modern web framework in Perl. Mojo is a subsidiary project focused on developing a toolkit for the framework. Modules of the Mojo::* family are widely used in third-party projects.
Code example:
use Mojo::Base -strict, -async;
async sub hello_p {
return 'Hello Mojo!';
}
hello_p()->then(sub { say @_ })->wait;
More examples can be found in the documentation.
Previously, Perlfoundation allocated grant for the development of the module Future::AsyncAwait. Some time later, the main developer of Mojolicious (Sebastian Riedel) reported, announced that work is ongoing for implementing async/await.
Experimental support for the all_settled method has also been added for Mojo::Promise.
Source: linux.org.ru
