Skip to content

v1.4.0

Choose a tag to compare

@JonathanPeterCole JonathanPeterCole released this 11 May 19:56
· 36 commits to main since this release
  • Added new static functions to CancellableFuture to make the API more similar to Dart's Future:
    • Future() ➡️ CancellableFuture.from()
    • Future.microtask() ➡️ CancellableFuture.microtask()
    • Future.sync() ➡️ CancellableFuture.sync()
    • Future.value() ➡️ CancellableFuture.value()
    • Future.delayed() ➡️ CancellableFuture.delayed()
  • Breaking: The CancellableFuture constructor is now private. Calls to this constuctor should be replaced with .asCancellable() or CancellableFuture.value():
    // Removed:
    // await CancellableFuture(exampleFuture, cancellationToken).future;
    
    // Recommended:
    await exampleFuture.asCancellable(cancellationToken);
  • Updated cancellableCompute with the latest changes from the Flutter SDK's compute function (see flutter/flutter#99527).