call

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

The call method takes a method name or coderef, registers it as the tryable routine, and returns the object. When invoked, the callback will received an invocant if one was provided to the constructor, the default arguments if any were provided to the constructor, and whatever arguments were provided by the invocant.

call(Str | CodeRef $method) : Object

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 21:

Unknown directive: =description

Around line 29:

Unknown directive: =signature

Around line 33:

Unknown directive: =type