callback

my $callback;

$callback = $try->callback($method);
$callback = $try->callback(fun (@args) {
  # do something
});

The callback method takes a method name or coderef, and returns a coderef for registration. If a coderef is provided this method is mostly a passthrough.

callback(Str | CodeRef) : CodeRef

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 23:

Unknown directive: =description

Around line 28:

Unknown directive: =signature

Around line 32:

Unknown directive: =type