public function __construct(callable $resolver, callable $canceller = null) { $this->canceller = $canceller; $this->call($resolver); }