mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
Adding a bridge library for integral_isolates adding support for components to run CPU intensive code with a function similar to Flutter's compute function, but with a long lived isolate. Lifecycle is handled by the game loop, where the isolate would live between onMount and onRemove.
7 lines
90 B
Dart
Executable File
7 lines
90 B
Dart
Executable File
class Pair<T, E> {
|
|
final T first;
|
|
final E second;
|
|
|
|
Pair(this.first, this.second);
|
|
}
|