NAME

    IO::AsyncX::Notifier - easier IO::Async::Notifiers with Object::Pad

SYNOPSIS

     use Object::Pad;
     class Example isa IO::AsyncX::Notifier {
      # This will be populated by ->configure(example_field => ...)
      # or ->new(example_field => ...)
      has $example_field;
      # This will be updated by ->configure (or ->new) in a similar fashion
      use Ryu::Observable;
      has $observable_field { Ryu::Observable->new };
    
      # You can have as many other fields as you want, main limitation
      # at the moment is that they have to be scalars.
    
      method current_values () {
       'Example field: ' . $example_field,
       ' and observable set to ' . $observable_field->as_string
      }
     }
     my $obj = Example->new(
      example_field    => 'xyz',
      observable_field => 'starting value'
     );
     print join "\n", $obj->current_values;

DESCRIPTION

    Provides some helper logic to simplify Object::Pad-based
    IO::Async::Notifier subclasses.

AUTHOR

    Tom Molesworth <TEAM@cpan.org>

LICENSE

    Copyright Tom Molesworth 2021. Licensed under the same terms as Perl
    itself.