WebGUI::BackgroundProcess (used now by AssetExport)

This commit is contained in:
Paul Driver 2010-09-20 11:45:21 -07:00
parent 20db0287b4
commit 79de38dc4a
11 changed files with 1309 additions and 43 deletions

View file

@ -0,0 +1,20 @@
package WebGUI::Test::BackgroundProcess;
sub simple {
my ( $self, $arr ) = @_;
$self->update( $arr->[0] );
}
sub error {
my ( $self, $arr ) = @_;
die "$arr->[0]\n";
}
sub complex {
my $self = shift;
$self->update( sub {'foo'} );
$self->update( sub {'bar'} );
$self->update( sub {'baz'} );
}
1;