We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dart version: Dart VM version: 2.1.0-dev.9.4 (Unknown timestamp) on "linux_x64"
Dart VM version: 2.1.0-dev.9.4 (Unknown timestamp) on "linux_x64"
Error message: lib/snakeway/snakeway.dart:1: Error: Type 'void' not found.
lib/snakeway/snakeway.dart:1: Error: Type 'void' not found.
mixin _Batch<I, V, T, B> { final Map<I, B> _batch = {}; bool _scheduled = false; B makeBatch(); Future<T> addToBatch(B batch, V param); void handleBatch(Map<I, B> batch); Future<T> get(I id, [V param]) { if (!_scheduled) { _scheduled = true; Timer.run(() { _scheduled = false; final copy = Map.of(_batch); _batch.clear(); handleBatch(copy); }); } return addToBatch(_batch[id] ??= makeBatch(), param); } } // Changing these `void`s below to `Null` made the error go away abstract class _SimpleBatch<I, T> with _Batch<I, void, T, Completer<T>> { @override Completer<T> makeBatch() => Completer.sync(); @override Future<T> addToBatch(Completer<T> completer, void param) => completer.future; }
Analyzer reports no errors.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Dart version:
Dart VM version: 2.1.0-dev.9.4 (Unknown timestamp) on "linux_x64"
Error message:
lib/snakeway/snakeway.dart:1: Error: Type 'void' not found.
Analyzer reports no errors.
The text was updated successfully, but these errors were encountered: