class WrapHandle { ... }
WrapHandle
is a Rakudo private class created and returned by wrap. Its only use is to unwrap wrapped routines. Either call unwrap on a routine object or call the method restore
on a Routine::WrapHandle
object.
sub f()my = .wrap();f; # OUTPUT: «beforef was calledafter».restore;f; # OUTPUT: «f was called»
As such private class, it may suffer any kind of changes without prior notice. It is only mentioned here since it is visible by the user who checks the return type of the Routine.wrap
method.
Methods§
method restore§
method restore(--> Bool)
Unwraps a wrapped routine and returns Bool::True
on success.