Interval Cancellation
teaching model: call a function immediately, then once per period, and stop scheduling once the cancel time is reached.
teaching model: call a function immediately, then once per period, and stop scheduling once the cancel time is reached.