dart-archive / isolate

Makes working with Dart isolates easier.
https://pub.dev/packages/isolate
BSD 3-Clause "New" or "Revised" License
90 stars 34 forks source link

IsolateRunner.spawn has fuzzy arrow warning #19

Closed leafpetersen closed 6 years ago

leafpetersen commented 6 years ago

On this line: https://github.com/dart-lang/isolate/blob/master/lib/isolate_runner.dart#L58

Isolate.spawn is called with a callback of type SendPort -> void, but the parameter type is dynamic -> void. This currently is accepted because of the deprecated fuzzy arrow feature, and should be fixed up.

Context here:

https://github.com/dart-lang/sdk/issues/30590

leafpetersen commented 6 years ago

Grabbing this.