Skip to content

Commit edc8edc

Browse files
committed
chore: added clarifying comment to OTBranch.computeWrite
1 parent 41c5a24 commit edc8edc

File tree

1 file changed

+1
-0
lines changed
  • model-datastructure/src/commonMain/kotlin/org/modelix/model/operations

1 file changed

+1
-0
lines changed

model-datastructure/src/commonMain/kotlin/org/modelix/model/operations/OTBranch.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class OTBranch(
8585
override fun <T> computeWrite(computable: () -> T): T {
8686
checkNotEDT()
8787
return if (canWrite()) {
88+
// Already in a transaction. Just append changes to the active one.
8889
branch.computeWrite(computable)
8990
} else {
9091
branch.computeWriteT { t ->

0 commit comments

Comments
 (0)