Skip to content

Commit cf9a506

Browse files
committed
Clarify defer policy when schedule is called multiple times
1 parent 33eef0b commit cf9a506

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

docs/writing-reactors/actions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ For a `logical` action `a`, the tag assigned to the event resulting from a call
171171

172172
For a **physical** action, the preliminary time is similar, except that _t_ is replaced by the current _physical_ time _T_ when `schedule()` is called.
173173

174+
If no `<min_spacing>` has been declared, then the tag of the event is simply the preliminary time
175+
unless there is already an event scheduled for the same action with the same tag.
176+
In that case, a microstep is added to the tag.
177+
If there is again a previously scheduled event with the same tag, then a microstep is added to the tag again.
178+
This process is repeated until there is no previously scheduled event with the same tag.
179+
This is equvalent to specifying a `<min_spacing>` of 0 with a `"defer"` policy.
180+
174181
If a `<min_spacing>` has been declared, then it gives a minimum logical time
175182
interval between the tags of two subsequently scheduled events. If the
176183
preliminary time is closer than `<min_spacing>` to the time of the previously

versioned_docs/version-0.5.0/writing-reactors/actions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ For a `logical` action `a`, the tag assigned to the event resulting from a call
171171

172172
For a **physical** action, the preliminary time is similar, except that _t_ is replaced by the current _physical_ time _T_ when `schedule()` is called.
173173

174+
If no `<min_spacing>` has been declared, then the tag of the event is simply the preliminary time
175+
unless there is already an event scheduled for the same action with the same tag.
176+
In that case, a microstep is added to the tag.
177+
If there is again a previously scheduled event with the same tag, then a microstep is added to the tag again.
178+
This process is repeated until there is no previously scheduled event with the same tag.
179+
This is equvalent to specifying a `<min_spacing>` of 0 with a `"defer"` policy.
180+
174181
If a `<min_spacing>` has been declared, then it gives a minimum logical time
175182
interval between the tags of two subsequently scheduled events. If the
176183
preliminary time is closer than `<min_spacing>` to the time of the previously

versioned_docs/version-0.6.0/writing-reactors/actions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ For a `logical` action `a`, the tag assigned to the event resulting from a call
171171

172172
For a **physical** action, the preliminary time is similar, except that _t_ is replaced by the current _physical_ time _T_ when `schedule()` is called.
173173

174+
If no `<min_spacing>` has been declared, then the tag of the event is simply the preliminary time
175+
unless there is already an event scheduled for the same action with the same tag.
176+
In that case, a microstep is added to the tag.
177+
If there is again a previously scheduled event with the same tag, then a microstep is added to the tag again.
178+
This process is repeated until there is no previously scheduled event with the same tag.
179+
This is equvalent to specifying a `<min_spacing>` of 0 with a `"defer"` policy.
180+
174181
If a `<min_spacing>` has been declared, then it gives a minimum logical time
175182
interval between the tags of two subsequently scheduled events. If the
176183
preliminary time is closer than `<min_spacing>` to the time of the previously

versioned_docs/version-0.7.0/writing-reactors/actions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ For a `logical` action `a`, the tag assigned to the event resulting from a call
171171

172172
For a **physical** action, the preliminary time is similar, except that _t_ is replaced by the current _physical_ time _T_ when `schedule()` is called.
173173

174+
If no `<min_spacing>` has been declared, then the tag of the event is simply the preliminary time
175+
unless there is already an event scheduled for the same action with the same tag.
176+
In that case, a microstep is added to the tag.
177+
If there is again a previously scheduled event with the same tag, then a microstep is added to the tag again.
178+
This process is repeated until there is no previously scheduled event with the same tag.
179+
This is equvalent to specifying a `<min_spacing>` of 0 with a `"defer"` policy.
180+
174181
If a `<min_spacing>` has been declared, then it gives a minimum logical time
175182
interval between the tags of two subsequently scheduled events. If the
176183
preliminary time is closer than `<min_spacing>` to the time of the previously

versioned_docs/version-0.8.0/writing-reactors/actions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ For a `logical` action `a`, the tag assigned to the event resulting from a call
171171

172172
For a **physical** action, the preliminary time is similar, except that _t_ is replaced by the current _physical_ time _T_ when `schedule()` is called.
173173

174+
If no `<min_spacing>` has been declared, then the tag of the event is simply the preliminary time
175+
unless there is already an event scheduled for the same action with the same tag.
176+
In that case, a microstep is added to the tag.
177+
If there is again a previously scheduled event with the same tag, then a microstep is added to the tag again.
178+
This process is repeated until there is no previously scheduled event with the same tag.
179+
This is equvalent to specifying a `<min_spacing>` of 0 with a `"defer"` policy.
180+
174181
If a `<min_spacing>` has been declared, then it gives a minimum logical time
175182
interval between the tags of two subsequently scheduled events. If the
176183
preliminary time is closer than `<min_spacing>` to the time of the previously

versioned_docs/version-0.9.0/writing-reactors/actions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ For a `logical` action `a`, the tag assigned to the event resulting from a call
171171

172172
For a **physical** action, the preliminary time is similar, except that _t_ is replaced by the current _physical_ time _T_ when `schedule()` is called.
173173

174+
If no `<min_spacing>` has been declared, then the tag of the event is simply the preliminary time
175+
unless there is already an event scheduled for the same action with the same tag.
176+
In that case, a microstep is added to the tag.
177+
If there is again a previously scheduled event with the same tag, then a microstep is added to the tag again.
178+
This process is repeated until there is no previously scheduled event with the same tag.
179+
This is equvalent to specifying a `<min_spacing>` of 0 with a `"defer"` policy.
180+
174181
If a `<min_spacing>` has been declared, then it gives a minimum logical time
175182
interval between the tags of two subsequently scheduled events. If the
176183
preliminary time is closer than `<min_spacing>` to the time of the previously

0 commit comments

Comments
 (0)