d-markey / squadron

Multithreading and worker thread pool for Dart / Flutter, to offload CPU-bound and heavy I/O tasks to Isolate or Web Worker threads.
https://pub.dev/packages/squadron
MIT License
79 stars 0 forks source link

squadron-5.1.0/lib/src/xplat/_helpers.dart:17:14: Error: Member not found: 'DateTime.timestamp' #22

Closed techouse closed 1 year ago

techouse commented 1 year ago

Hey! :)

I upgraded to v5.10 and tried running the code generation but got this error

[INFO] Precompiling build script......
[WARNING] ../../.pub-cache/hosted/pub.dev/squadron-5.1.0/lib/src/xplat/_helpers.dart:17:14: Error: Member not found: 'DateTime.timestamp'.
    DateTime.timestamp().difference(_sqEpoch).inMicroseconds;
             ^^^^^^^^^

Looks like a missing DateTime import.

d-markey commented 1 year ago

DataTime is from dart:core so it can't be a missing import problem. I looked up Dart documentation and timestamp() is actually a new constructor in Dart 3 but it doesn't come with a @Since annotation to warn against this.

techouse commented 1 year ago

You're awesome! ♥️ I'll test it tomorrow morning!

d-markey commented 1 year ago

Publishing right now