mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-12-24 18:59:44 +01:00
comments
This commit is contained in:
parent
e8d3e6450e
commit
b08ae78dd1
4 changed files with 16 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
|||
{-# LANGUAGE RecordWildCards #-}
|
||||
|
||||
-- | This module defines data structures and operations pertaining to registered
|
||||
-- clients using registered calls; for unregistered support, see
|
||||
-- `Network.GRPC.LowLevel.Client.Unregistered`.
|
||||
module Network.GRPC.LowLevel.Client where
|
||||
|
||||
import Control.Exception (bracket, finally)
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
-- cause race conditions, so we only expose functions that are thread safe.
|
||||
-- However, some of the functions we export here can cause memory leaks if used
|
||||
-- improperly.
|
||||
--
|
||||
-- When definition operations which pertain to calls, this module only provides
|
||||
-- definitions for registered calls; for unregistered variants, see
|
||||
-- `Network.GRPC.LowLevel.CompletionQueue.Unregistered`. Type definitions and
|
||||
-- implementation details to both are kept in
|
||||
-- `Network.GRPC.LowLevel.CompletionQueue.Internal`.
|
||||
|
||||
{-# LANGUAGE RecordWildCards #-}
|
||||
|
||||
|
|
|
@ -221,11 +221,10 @@ runOps call cq ops timeLimit =
|
|||
|
||||
-- | For a given call, run the given 'Op's on the given completion queue with
|
||||
-- the given tag. Blocks until the ops are complete or the given number of
|
||||
-- seconds have elapsed.
|
||||
-- TODO: now that 'ServerRegCall' and 'U.ServerCall' are separate types, we
|
||||
-- could try to limit the input 'Op's more appropriately. E.g., we don't use
|
||||
-- an 'OpRecvInitialMetadata' when receiving a registered call, because gRPC
|
||||
-- handles that for us.
|
||||
-- seconds have elapsed. TODO: now that we distinguish between different types
|
||||
-- of calls at the type level, we could try to limit the input 'Op's more
|
||||
-- appropriately. E.g., we don't use an 'OpRecvInitialMetadata' when receiving a
|
||||
-- registered call, because gRPC handles that for us.
|
||||
runServerRegOps :: ServerRegCall
|
||||
-- ^ 'Call' that this batch is associated with. One call can be
|
||||
-- associated with many batches.
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{-# LANGUAGE RecordWildCards #-}
|
||||
|
||||
-- | This module defines data structures and operations pertaining to registered
|
||||
-- servers using registered calls; for unregistered support, see
|
||||
-- `Network.GRPC.LowLevel.Server.Unregistered`.
|
||||
module Network.GRPC.LowLevel.Server where
|
||||
|
||||
import Control.Exception (bracket, finally)
|
||||
|
|
Loading…
Reference in a new issue