File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
objectbox/example/flutter Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ class ObjectBox {
5656 Future <void > addNote (String text) =>
5757 store.runInTransactionAsync (TxMode .write, _addNoteInTx, text);
5858
59+ /// Note: due to [dart-lang/sdk#36983] (https://github.com/dart-lang/sdk/issues/36983)
60+ /// not using a closure as it may capture more objects than expected.
61+ /// These might not be send-able to an isolate. See Store.runAsync for details.
5962 static void _addNoteInTx (Store store, String text) {
6063 // Perform ObjectBox operations that take longer than a few milliseconds
6164 // here. To keep it simple, this example just puts a single object.
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ class ObjectBox {
5353 Future <void > addNote (String text) =>
5454 store.runInTransactionAsync (TxMode .write, _addNoteInTx, text);
5555
56+ /// Note: due to [dart-lang/sdk#36983] (https://github.com/dart-lang/sdk/issues/36983)
57+ /// not using a closure as it may capture more objects than expected.
58+ /// These might not be send-able to an isolate. See Store.runAsync for details.
5659 static void _addNoteInTx (Store store, String text) {
5760 // Perform ObjectBox operations that take longer than a few milliseconds
5861 // here. To keep it simple, this example just puts a single object.
You can’t perform that action at this time.
0 commit comments