We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 668ed0d + 1e703c4 commit f853afeCopy full SHA for f853afe
Network/Socket/Types.hsc
@@ -130,6 +130,10 @@ unsafeFdSocket (Socket ref _) = readIORef ref
130
-- at the given place in the sequence of IO actions. This function can be
131
-- used in conjunction with 'unsafeFdSocket' to guarantee that the file
132
-- descriptor is not prematurely freed.
133
+--
134
+-- > fd <- unsafeFdSocket sock
135
+-- > -- using fd with blocking operations such as accept(2)
136
+-- > touchSocket sock
137
touchSocket :: Socket -> IO ()
138
touchSocket (Socket ref _) = touch ref
139
0 commit comments