File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,9 @@ func (s Options[Resource]) withDefaults() Options[Resource] {
93
93
// If there is no pending batch then the new batch will be started and will run for at least MinDuration. After the
94
94
// MinDuration no new operations will be accepted and SaveResource function will be called.
95
95
//
96
- // Operations are run sequentially. No manual locking is required inside operation. Operation should be fast, which
97
- // basically means that any I/O should be avoided at all cost.
96
+ // Operations are run sequentially. No manual synchronization is required inside operation. Operation should be fast, which
97
+ // basically means that any I/O should be avoided at all cost. Operations (together with LoadResource and SaveResource)
98
+ // are run on a batch dedicated go-routine.
98
99
//
99
100
// Operation must leave Resource in a consistent state, so the next operation in batch can be executed on the same resource.
100
101
// When operation cannot be executed because some conditions are not met then operation should not change the state
You can’t perform that action at this time.
0 commit comments