1Promises::Deferred::MojUos(e3r)Contributed Perl DocumentPartoimoinses::Deferred::Mojo(3)
2
3
4

NAME

6       Promises::Deferred::Mojo - An implementation of Promises in Perl
7

VERSION

9       version 1.04
10

SYNOPSIS

12           use Promises backend => ['Mojo'], qw[ deferred collect ];
13
14           # ... everything else is the same
15

DESCRIPTION

17       The "Promise/A+" spec strongly suggests that the callbacks given to
18       "then" should be run asynchronously (meaning in the next turn of the
19       event loop), this module provides support for doing so using the
20       Mojo::IOLoop module.
21
22       Module authors should not care which event loop will be used but
23       instead should just the Promises module directly:
24
25           package MyClass;
26
27           use Promises qw(deferred collect);
28
29       End users of the module can specify which backend to use at the start
30       of the application:
31
32           use Promises -backend => ['Mojo'];
33           use MyClass;
34
35       Note: If you are using Mojolicious with the EV event loop, then you
36       should use the Promises::Deferred::EV backend instead.
37

AUTHOR

39       Stevan Little <stevan.little@iinteractive.com>
40
42       This software is copyright (c) 2020, 2019, 2017, 2014, 2012 by Infinity
43       Interactive, Inc.
44
45       This is free software; you can redistribute it and/or modify it under
46       the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.34.0                      2021-07-22       Promises::Deferred::Mojo(3)
Impressum