Allow dart code execution on mutator thread, do not require an isolate. It moves some states that was kept on an isolate to thread or isolate group. Bug: https://github.com/dart-lang/sdk/issues/54530 Bug: https://github.com/dart-lang/sdk/issues/56841 TEST=run_isolate_group_run_test CoreLibraryReviewExempt: only internal library is being updated Change-Id: I99df09e23954755387ea6230bfd166493d78e989 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/418503 Reviewed-by: Slava Egorov <vegorov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
☠☠ Warning: This package is experimental and may be removed in a future version of Dart. ☠☠
This package is not intended for wide use. It provides a temporary API to solve the problem: "Given an object some generic type A, how do I construct an instance of generic type B with the same type argument(s)?"
This is necessary in a few rare places in order to migrate existing code to Dart 2's stronger type system. Eventually, the hope is to have direct language support for solving this problem but we don't have time to get that into 2.0, so this package is provided as a temporary workaround.
We will very likely remove support for this in a later version of Dart. Please avoid using this if you can. If you feel you do need to use it, please reach out to @munificent or @leafpetersen and let us know.