Created
          February 6, 2019 03:42 
        
      - 
      
 - 
        
Save solomon-b/8c2c970b0e0e275d216bdccc73368149 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | forkReader :: ReaderT r IO () -> ReaderT r IO ThreadId | |
| forkReader action = do | |
| env <- ask | |
| liftIO . forkIO $ runReaderT action env | |
| forkUnliftIO :: MonadUnliftIO m => m () -> m ThreadId | |
| forkUnliftIO r = withRunInIO $ \run -> forkIO (run r) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment