google / google/webcrypto.dart

Move all computation off-the-mainthread

Open
#6 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
116
Forks
110
Avg merge
6d 8h
Merged PRs (30d)
9

Description

This already the case on the web, or at-least it's moved the browser which is most likely moving it off-the-mainthread.

We should do the same on Android and iOS.

A workaround is to wrap functions using crypto with [compute](https://api.flutter.dev/flutter/foundation/compute.html).

**NOTE**, the API is already fully async, so we should be able to move computation off the main thread, without breaking existing users of this package.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.