The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Zing::Zang::Simple - Simple-Task Process

ABSTRACT

Simple-Task Process Implementation

SYNOPSIS

  use Zing::Zang::Simple;

  my $zang = Zing::Zang::Simple->new(
    on_perform => sub {
      my ($self) = @_;

      $self->{performed}++
    }
  );

  # $zang->execute;

DESCRIPTION

This package provides a standard Zing::Process which uses callbacks and doesn't need to be subclassd. It supports providing the standard process perform method as on_performwhich operate as expected. This process does not check its mailbox and does't support a receive handler.

INHERITS

This package inherits behaviors from:

Zing::Simple

LIBRARIES

This package uses type constraints from:

Zing::Types

ATTRIBUTES

This package has the following attributes:

on_perform

  on_perform(Maybe[CodeRef])

This attribute is read-only, accepts (Maybe[CodeRef]) values, and is optional.

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues