Skip to content

Comments

Moving heartbeat task to repeat at fixed rate#52

Merged
dsrees merged 1 commit intomasterfrom
dr/fix-heartbeat-not-repeating
May 22, 2019
Merged

Moving heartbeat task to repeat at fixed rate#52
dsrees merged 1 commit intomasterfrom
dr/fix-heartbeat-not-repeating

Conversation

@dsrees
Copy link
Owner

@dsrees dsrees commented May 21, 2019

closes #51

Heartbeat Task was being scheduled using ScheduleExecuterService.schedule(delay:) which is schedules a one-time task. It needs to be scheduled using ScheduleExecuterService. scheduleAtFixedRate(delay:, period:) which will repeat the task every given period until canceled

  • Updated DispatchQueue interface to allow for queueing a repeating task
  • Updated Socket to queue the heartbeatTask using the new repeating task
  • Updated ManualDispatchQueue to implement the new interface method
  • Updated tests to ensure that the heartbeatTask is scheduled correctly

@dsrees dsrees merged commit f65ba25 into master May 22, 2019
@dsrees dsrees deleted the dr/fix-heartbeat-not-repeating branch May 22, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heartbeat seems to be sent only once (instead of every x seconds)

1 participant