File: README

package info (click to toggle)
libtickit-async-perl 0.24-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 140 kB
  • sloc: perl: 315; makefile: 5
file content (40 lines) | stat: -rw-r--r-- 1,067 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
NAME

    Tickit::Async - use Tickit with IO::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
    simple Tickit object.

    To avoid accidentally creating multiple loops, callers should be
    careful to add the Tickit::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>