1 package Object::Remote;
3 use Object::Remote::MiniLoop;
4 use Object::Remote::Handle;
5 use Module::Runtime qw(use_module);
8 my ($class, $on, @args) = @_;
9 my $conn = __PACKAGE__->connect($on);
10 return $conn->remote_object(class => $class, args => \@args);
15 Object::Remote::Handle->new(@_)->proxy;
19 my ($class, $to) = @_;
20 use_module('Object::Remote::Connection')->new_from_spec($to);
24 our $Current_Loop ||= Object::Remote::MiniLoop->new