2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-06-27 06:43:13 +00:00

null-safety

This commit is contained in:
2021-07-24 13:12:43 +03:00
parent 6be04c39ed
commit 614c6853e3
48 changed files with 3022 additions and 3320 deletions

View File

@ -2,8 +2,8 @@ library esiur;
import 'AsyncReply.dart';
class AsyncQueue<T> extends AsyncReply<T> {
List<AsyncReply<T>> _list = <AsyncReply<T>>[];
class AsyncQueue<T> extends AsyncReply<T?> {
List<AsyncReply<T?>> _list = <AsyncReply<T?>>[];
// object queueLock = new object();
@ -23,7 +23,7 @@ class AsyncQueue<T> extends AsyncReply<T> {
processQueue(null);
}
void processQueue(T o) {
void processQueue(T? o) {
//lock (queueLock)
for (var i = 0; i < _list.length; i++)
if (_list[i].ready) {