$callback The synchronized callback to invoke. * The callback may be a regular function or a coroutine. * * @return \Interop\Async\Promise Resolves with the return value of $callback or fails if $callback * throws an exception. */ public function synchronized(callable $callback): Promise; }