withWrite<T> method
Implementation
Future<T> withWrite<T>(String table, Future<T> Function() fn,
{int timeoutMs = 5000}) async {
final g = await acquireWrite(table, timeoutMs: timeoutMs);
try {
return await fn();
} finally {
release(g);
}
}