MojoX-Run

 view release on metacpan or  search on metacpan

lib/MojoX/Run.pm  view on Meta::CPAN

=cut

sub spawn {
	my ($self, %opt) = @_;
	unless (defined $self && blessed($self) && $self->isa(__PACKAGE__)) {
		my $obj = __PACKAGE__->new();
		return $obj->spawn(%opt);
	}
	$self->{_error} = '';

	# normalize and validate run parameters...
	my $o = $self->_getRunStruct(\%opt);
	return 0 unless ($self->_validateRunStruct($o));

	# start exec!
	return $self->_spawn($o);
}

=head2 spawn_sub

 my $code = sub { return { a => 1, b => 2} };
 my $pid = $mojox_run->spawn_sub(
 	$code,

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.986 second using v1.00-cache-2.02-grep-82fe00e-cpan-0ab70e22118 )