There should be no one-time tasks that are stopped by a condition.
If, say, a door must be closed by powering a motor until there is a signal from contact sensor, then Runnable loop can be emplty (or just a 1ms pause), onStart will be output pin to 'on' and onStop - to 'off'.