json_async

Last updated:

0 purchases

json_async Image
json_async Images
Add to Cart

Description:

json async

json_async #

Runs JSON encoding/decoding in a separate, long-running, isolate.
This is helpful when working with JSON frequently and the spawning/destruction or a new isolate (e.g. when used in via compute) creates too much overhead.
Example #
final String str = await jsonDecodeAsync('"ABC"');

final Map<String, int> map = await jsonDecodeAsyncMap<int>('{"0":1}');

final List<String> list = await jsonDecodeAsyncList<String>('["A","B"]');
copied to clipboard
All 3 calls will be run in a shared background isolate.
Errors will be forwarded to the caller.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.