File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/Streamly/Internal/Data/Stream/Channel Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ module Streamly.Internal.Data.Stream.Channel.Type
4444 -- *** Diagnostics
4545 , inspect
4646
47- -- *** Resource cleanup
47+ -- *** Resource management
4848 , useAcquire
4949 , clearAcquire
5050
@@ -589,6 +589,15 @@ _getBound = _bound
589589--
590590-- Here is an example:
591591--
592+ -- >>> import Control.Monad (when)
593+ -- >>> import Control.Concurrent (threadDelay)
594+ -- >>> import Data.Function ((&))
595+ -- >>> import System.IO (hClose, IOMode(..), openFile)
596+ --
597+ -- >>> import qualified Streamly.Data.Fold as Fold
598+ -- >>> import qualified Streamly.Data.Stream.Prelude as Stream
599+ -- >>> import qualified Streamly.Control.Exception as Exception
600+ --
592601-- >>> :{
593602-- close x h = do
594603-- putStrLn $ "closing: " ++ x
You can’t perform that action at this time.
0 commit comments