Design Pattern: Recursive Timers

This DP is very old and due for a rewrite. There are better approaches (see Design Pattern: Cascading Timers and Design Pattern: Looping Timers). I would not recommend using this DP any longer, at least until I can rewrite it which will take a bit.

  1. That is correct, it should be createDoorTimer
  2. I’ll take your word for it. I don’t see it but have no doubt it is missing.
  3. I don’t remember any longer. Maybe. At one time I was storing the lambda itself in the map but that doesn’t seem to make sense here.
  4. Yes, same typo. At some point I decided on a new name (probably last time I edited the Rule) and wasn’t consistent.

Use Looping timers as I linked above. That will be a better approach I think.

Global vars and vals cannot see each other. If you have a lambda that needs to call another lambda, you must pass it as an argument.