Help for this page

Select Code to Download


  1. or download this
    # normal sub - no parameters.
    my $thread = async \&subname;
    ...
    
    # method with args
    my $thread = async \&Classname::method, $obj, $arg1, $arg2;
    
  2. or download this
    my $thread = threads->create( \&sub, $arg1, $arg2 );
    
    my $thread = threads->new( \&Classname::method, $obj, $arg1, $arg2 );