Help for this page

Select Code to Download


  1. or download this
    sub submit_request {
        my ($code_ref, ...) = @_;
    ...
        ++$registered{ $callback_id }[0];
        _submit_request($callback_id, @_);
    }
    
  2. or download this
    sub on_response {
        my $callback_id = shift;
    ...
            or delete( $registered{ $callback_id } );
        $code_ref->(@_);
    }