From 715e86e521067fcf376dee7d458ee81419c517d8 Mon Sep 17 00:00:00 2001 From: Marcin Szamotulski Date: Fri, 31 Jan 2020 10:36:35 +0100 Subject: [PATCH] Added docs to associateWithIOCompletionPort --- Win32-network/src/System/Win32/Async/IOManager.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Win32-network/src/System/Win32/Async/IOManager.hs b/Win32-network/src/System/Win32/Async/IOManager.hs index ce8170ae46e..6d03b55f734 100644 --- a/Win32-network/src/System/Win32/Async/IOManager.hs +++ b/Win32-network/src/System/Win32/Async/IOManager.hs @@ -56,6 +56,9 @@ createIOCompletionPort concurrentThreads foreign import ccall unsafe "windows.h CreateIoCompletionPort" c_CreateIoCompletionPort :: HANDLE -> HANDLE -> Ptr () -> DWORD -> IO HANDLE +-- | Associate with I/O completion port. This can be used multiple times on +-- a file descriptor. +-- associateWithIOCompletionPort :: Either HANDLE Socket -> IOCompletionPort -> IO ()