Streamͱͯ͠ͷReceivePort
ReceivePort.close()͠ͳ͍ݶΓແݶετϦʔϜ
͔͠͠IsolateଆͰReceivePort.close()͢Δ͜ͱͰ͖ͳ͍
https://github.com/dart-lang/sdk/issues/28731
Isolateͷݺͼग़͠ଆReceivePortΛlistenͯࣗ͠ݾcloseͤ͞Δ?
Ͱlistenͨ͠ΒStreamΛ࠶༻Ͱ͖ͳ͍
ReceivePort͕ແݶετϦʔϜʹͳΔͱ
for asyncͰ͖ͳ͍
StreamॲཧͷҰ෦͕ແݶϒϩοΫ͢Δ
༗ݶͰ͋Δ͜ͱΛલఏͱͨ͠ετϦʔϜࢼݧ(emitsInOrder)Ͱ͖ͳ͍
ReceivePort͕StreamͰ͋Δ͜ͱͦͦઃܭ্ଥͳͷ͔?
We chose to make ReceivePort look like a Stream. That might have been a mistake, but
it's too late to change now.
StreamͰͳ͍RawReceivePort͋Δ