future_context 0.0.1+2 icon indicating copy to clipboard operation
future_context: ^0.0.1+2 copied to clipboard

Cancelable future support. 'future_context' library is Experimental.

future_context

Github Actions

Features #

Flutterアプリの非同期処理キャンセル処理をサポートする.

  • FutureContext Kotlin.coroutinesのようなキャンセル可能な非同期処理

Usage #

TODO.

final context = FutureContext();

// if you should cancel this `suspend` block.
// context.cancel();

final value = await context.suspend((context) async {
    // Very slow.
    return 100;
});

// finalyze
context.dispose();
0
likes
125
pub points
41%
popularity

Publisher

verified publisher iconviviware.com

Cancelable future support. 'future_context' library is Experimental.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

async_notify, flutter, rxdart, tuple

More

Packages that depend on future_context