reanimate/windows/Detach.hs
2021-01-04 13:17:34 +08:00

10 lines
190 B
Haskell

module Detach (detach) where
import Control.Monad
import Control.Concurrent
detach :: IO () -> IO Bool
detach action = do
void $ forkIO action
threadDelay (10^(6::Int))
return False