Implementing setTimeout with clearTimeout in an effectful way - Effect Community