Glib-Event

 view release on metacpan or  search on metacpan

Event.pm  view on Meta::CPAN

 use Glib::Event;

 # example with Gtk2:
 use Gtk2 -init;
 use Glib::Event;
 use Event; # any order
 Event->timer (after => 1, interval => 1, cb => sub { print "I am here!\n" });
 main Gtk2;
 # etc., it just works

 # You can even move the glib mainloop into a coroutine:
 use Gtk2 -init;
 use Coro;
 use Coro::Event;
 use Glib::Event;
 async { main Gtk2 };
 # ... do other things

=head1 DESCRIPTION

This module coerces the Glib event loop to use the Event module as

README  view on Meta::CPAN

     use Glib::Event;

     # example with Gtk2:
     use Gtk2 -init;
     use Glib::Event;
     use Event; # any order
     Event->timer (after => 1, interval => 1, cb => sub { print "I am here!\n" });
     main Gtk2;
     # etc., it just works

     # You can even move the glib mainloop into a coroutine:
     use Gtk2 -init;
     use Coro;
     use Coro::Event;
     use Glib::Event;
     async { main Gtk2 };
     # ... do other things

DESCRIPTION
    This module coerces the Glib event loop to use the Event module as
    underlying event loop, i.e. Event will be used by Glib for all events.



( run in 0.311 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )