File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export class Action<T> extends ScheduledTrigger<T> implements Read<T> {
7070
7171 schedule ( extraDelay : 0 | TimeValue , value : T , intendedTag ?: Tag ) : void {
7272 if ( ! ( extraDelay instanceof TimeValue ) ) {
73- extraDelay = TimeValue . secs ( 0 ) ;
73+ extraDelay = TimeValue . zero ( ) ;
7474 }
7575
7676 let tag = this . action . runtime . util . getCurrentTag ( ) ;
Original file line number Diff line number Diff line change @@ -462,14 +462,12 @@ export class Tag {
462462 * Get a new time instant that represents this time instant plus
463463 * the given delay. The `microstep` of this time instant is ignored;
464464 * the returned time instant has a `microstep` of zero if the delay
465- * is greater than zero. If the delay equals zero, the tag is returned
466- * unchanged with its current `microstep`. If the delay is undefined,
467- * the tag is returned as it was.
465+ * is greater than zero. If the delay equals zero or is undefined,
466+ * the tag is returned unchanged with its current `microstep`.
468467 * @param delay The time interval to add to this time instant.
469468 */
470469 getLaterTag ( delay : TimeValue | undefined ) : Tag {
471470 if ( delay === undefined || delay . isZero ( ) ) {
472- // FIXME: Should a tag + zero returns one microstep after the tag?
473471 return this ;
474472 } else {
475473 return new Tag ( delay . add ( this . time ) , 0 ) ;
You can’t perform that action at this time.
0 commit comments