{"id":16310092,"url":"https://github.com/grinnz/future-mojo","last_synced_at":"2025-04-07T15:33:36.335Z","repository":{"id":56837945,"uuid":"43283238","full_name":"Grinnz/Future-Mojo","owner":"Grinnz","description":"Future::Mojo - use Future with Mojo::IOLoop","archived":false,"fork":false,"pushed_at":"2024-03-11T04:34:17.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T21:04:28.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Future::Mojo","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Grinnz.png","metadata":{"files":{"readme":"README.pod","changelog":"Changes","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-28T06:11:53.000Z","updated_at":"2024-03-11T04:23:24.000Z","dependencies_parsed_at":"2024-06-19T01:31:54.519Z","dependency_job_id":"8ddd12f5-5cdd-41d3-b43f-90099426bbc4","html_url":"https://github.com/Grinnz/Future-Mojo","commit_stats":{"total_commits":58,"total_committers":3,"mean_commits":"19.333333333333332","dds":0.06896551724137934,"last_synced_commit":"5dfd85fc9f941a1243337d04aba20f4d8001f441"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grinnz%2FFuture-Mojo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grinnz%2FFuture-Mojo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grinnz%2FFuture-Mojo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grinnz%2FFuture-Mojo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Grinnz","download_url":"https://codeload.github.com/Grinnz/Future-Mojo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247680168,"owners_count":20978208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:23:42.438Z","updated_at":"2025-04-07T15:33:35.533Z","avatar_url":"https://github.com/Grinnz.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=pod\n\n=head1 NAME\n\nFuture::Mojo - use Future with Mojo::IOLoop\n\n=head1 SYNOPSIS\n\n use Future::Mojo;\n use Mojo::IOLoop;\n \n my $loop = Mojo::IOLoop-\u003enew;\n \n my $future = Future::Mojo-\u003enew($loop);\n \n $loop-\u003etimer(3 =\u003e sub { $future-\u003edone('Done') });\n \n print $future-\u003eget, \"\\n\";\n\n=head1 DESCRIPTION\n\nThis subclass of L\u003cFuture\u003e stores a reference to the associated L\u003cMojo::IOLoop\u003e\ninstance, allowing the C\u003cawait\u003e method to block until the Future is ready.\n\nFor a full description on how to use Futures, see the L\u003cFuture\u003e documentation.\n\n=head1 CONSTRUCTORS\n\n=head2 new\n\n my $future = Future::Mojo-\u003enew;\n my $future = Future::Mojo-\u003enew($loop);\n\nReturns a new Future. Uses L\u003cMojo::IOLoop/\"singleton\"\u003e if no loop is specified.\n\n=head2 new_timer\n\n my $future = Future::Mojo-\u003enew_timer($seconds);\n my $future = Future::Mojo-\u003enew_timer($loop, $seconds);\n\nReturns a new Future that will become ready after the specified delay. Uses\nL\u003cMojo::IOLoop/\"singleton\"\u003e if no loop is specified.\n\n=head2 new_timeout\n\n my $future = Future::Mojo-\u003enew_timeout($seconds);\n my $future = Future::Mojo-\u003enew_timeout($loop, $seconds);\n\nReturns a new Future that will fail after the specified delay. Uses\nL\u003cMojo::IOLoop/\"singleton\"\u003e if no loop is specified.\n\n=head1 METHODS\n\nL\u003cFuture::Mojo\u003e inherits all methods from L\u003cFuture\u003e and implements the\nfollowing new ones.\n\n=head2 loop\n\n $loop = $future-\u003eloop;\n\nReturns the underlying L\u003cMojo::IOLoop\u003e object.\n\n=head2 await\n\n $future-\u003eawait;\n\nRuns the underlying L\u003cMojo::IOLoop\u003e until the future is ready. If the event\nloop is already running, an exception is thrown.\n\n=head2 done_next_tick\n\n $future = $future-\u003edone_next_tick(@result);\n\nA shortcut to calling the L\u003cFuture/\"done\"\u003e method on the\nL\u003cMojo::IOLoop/\"next_tick\"\u003e. Ensures that a returned Future object is not ready\nimmediately, but will wait for the next I/O round.\n\n=head2 fail_next_tick\n\n $future = $future-\u003efail_next_tick($exception, @details);\n\nA shortcut to calling the L\u003cFuture/\"fail\"\u003e method on the\nL\u003cMojo::IOLoop/\"next_tick\"\u003e. Ensures that a returned Future object is not ready\nimmediately, but will wait for the next I/O round.\n\n=head2 promisify\n\n my $promise = $future-\u003epromisify;\n\nComposed from L\u003cFuture::Role::Promisify\u003e.\n\n=head1 BUGS\n\nReport any issues on the public bugtracker.\n\n=head1 AUTHOR\n\nDan Book \u003cdbook@cpan.org\u003e\n\n=head1 CONTRIBUTORS\n\n=over\n\n=item Jose Luis Martinez (pplu)\n\n=back\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is Copyright (c) 2015 by Dan Book.\n\nThis is free software, licensed under:\n\n  The Artistic License 2.0 (GPL Compatible)\n\n=head1 SEE ALSO\n\nL\u003cFuture\u003e\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrinnz%2Ffuture-mojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrinnz%2Ffuture-mojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrinnz%2Ffuture-mojo/lists"}