-
-
19 Aug 2021 16:02:48 UTC
- Distribution: Tickit-Async
- Module version: 0.25
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (16 / 5 / 2)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (15.42KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE user- Dependencies
- IO::Async
- IO::Async::Notifier
- IO::Async::Stream
- IO::Async::Test
- Tickit
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Tickit::Async
- useTickit
withIO::Async
SYNOPSIS
use IO::Async; use Tickit::Async; my $tickit = Tickit::Async->new; # Create some widgets # ... $tickit->set_root_widget( $rootwidget ); my $loop = IO::Async::Loop->new; $loop->add( $tickit ); $tickit->run;
DESCRIPTION
This class allows a Tickit user interface to run alongside other IO::Async-driven code, using
IO::Async
as a source of IO events.As a shortcut convenience, a containing IO::Async::Loop will be constructed using the default magic constructor the first time it is needed, if the object is not already a member of a loop. This will allow a
Tickit::Async
object to be used without being aware it is not a simpleTickit
object.To avoid accidentally creating multiple loops, callers should be careful to
add
theTickit::Async
object to the main application's loop if one already exists as soon as possible after construction.AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
Module Install Instructions
To install Tickit::Async, copy and paste the appropriate command in to your terminal.
cpanm Tickit::Async
perl -MCPAN -e shell install Tickit::Async
For more information on module installation, please visit the detailed CPAN module installation guide.