@@ -135,6 +135,12 @@ runSettingsConnection set getConn app = runSettingsConnectionMaker set getConnMa
135135 (conn, sa) <- getConn
136136 return (return conn, sa)
137137
138+-- | Allows you to provide a function which will return a @Connection@. In
139+-- cases where creating the @Connection@ can be expensive, this allows the
140+-- expensive computations to be performed in a separate thread instead of the
141+-- main server loop.
142+--
143+-- Since 1.3.5
138144runSettingsConnectionMaker :: Settings -> IO (IO Connection, SockAddr) -> Application -> IO ()
139145runSettingsConnectionMaker set getConn app = do
140146 tm <- maybe (T.initialize $ settingsTimeout set * 1000000) return