synchronized(function (int $value) { return $value + 1; }); return 0; }, $parcel); $this->assertSame(0, yield $thread->join()); $this->assertSame($value + 1, yield $parcel->unwrap()); } }