$tx->res->code; $ua->get('https://mojolicious.org' => sub { my ($ua, $tx) = @_; say $tx->res->code; $ua->get('https://mojolicious.org' => sub { my ($ua, $tx) = @_; say $tx->res->code; }); }); }); 7.0
})->then(sub { my $tx = shift; say $tx->res->code; return $ua->get_p('https://mojolicious.org'); })->then(sub { my $tx = shift; say $tx->res->code; }); 8.0
unless $server->isa('Mojo::Server::Daemon'); say "Manager $$ started"; $server->on( spawn => sub { my ($server, $pid) = @_; say "Worker $pid started"; } ) if $server->isa('Mojo::Server::Prefork'); });
{...} sub enqueue {...} sub fail_job {...} sub finish_job {...} sub history {...} sub list_jobs {...} sub list_locks {...} sub list_workers {...} sub lock {...} sub note {...} sub receive {...} sub register_worker {...} sub remove_job {...} sub repair {...} sub reset {...} sub retry_job {...} sub stats {...} sub unlock {...} sub unregister_worker {...}