package Foo; use Moose; use AtomicMethod; atomic_method foo => sub { warn "in foo\n"; };