Skip to content

wakaba/perl-promised-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Promised::Timer - Timer promise

SYNOPSIS

use Promised::Timer;

Promised::Timer->timeout (3)->then (sub {
  warn "3s elapsed";
});

DESCRIPTION

The Promised::Timer module defines a timer promise function.

METHOD

There is the following method:

$promise = Promised::Timer->timeout ($time)

Return a Promise object, which is resolved with undef after at least the specified number of seconds have passed.

DEPENDENCY

The module requires Promise <https://github.com/wakaba/perl-promise> and AnyEvent.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2015 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages