Skip to content

Commit c7c82de

Browse files
Store: note it's closed when using runAsync/runInTransactionAsync.
1 parent 31ce02e commit c7c82de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

objectbox/lib/src/native/store.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ class Store {
521521
/// If all operations can execute within a single transaction, prefer to use
522522
/// [runInTransactionAsync].
523523
///
524+
/// The Store given to the callback does not have to be closed, it is closed
525+
/// by the worker isolate once the callback returns (or throws).
526+
///
524527
/// The following example gets the name of a User object, deletes the object
525528
/// and returns the name:
526529
/// ```dart

0 commit comments

Comments
 (0)