write<T> static method

Future<T> write<T>(
  1. String rootPath,
  2. Future<T> action()
)

Runs action with an exclusive claim on the bundle at rootPath.

Implementation

static Future<T> write<T>(String rootPath, Future<T> Function() action) =>
    _synchronized(rootPath, action, exclusive: true);