future_context 0.0.2+3 copy "future_context: ^0.0.2+3" to clipboard
future_context: ^0.0.2+3 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
0
points
2
downloads

Publisher

verified publisherviviware.com

Weekly Downloads

Cancelable future support. 'future_context' library is Experimental.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async_notify, flutter, meta, rxdart

More

Packages that depend on future_context