If the method is actually static, then making it s...
# development
a
If the method is actually static, then making it static is a good solution. If you did need a
self
reference, the way to do that would’ve been, before the
and_then
call, to write
let runner2 = self.clone();
which gives you a new instance of
CommandRunner
which you can then move into the closure, and use
runner2
any time you want to use
self
in that closure