Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. handleCallExternal :: forall s r w . Serializable r => STM r -> (w -> STM ()) -> CallHandler s r w -> ExternDispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    Handle call style API interactions using arbitrary STM actions. The usual CallHandler is preceded by an stm action that, when evaluated, yields a value, and a second expression that is used to send a reply back to the caller. The corrolary client API is callSTM.

  2. handleCallFrom :: forall s a b . (Serializable a, Serializable b) => DeferredCallHandler s a b -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    As handleCall but passes the CallRef to the handler function. This can be useful if you wish to reply later to the caller by, e.g., spawning a process to do some work and have it replyTo caller response out of band. In this case the callback can pass the CallRef to the worker (or stash it away itself) and return noReply.

  3. handleCallFromIf :: forall s a b . (Serializable a, Serializable b) => Condition s a -> DeferredCallHandler s a b -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    As handleCallFrom but only runs the handler if the supplied Condition evaluates to True.

  4. handleCallFromIf_ :: forall s a b . (Serializable a, Serializable b) => Condition s a -> StatelessCallHandler s a b -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    A variant of handleCallFromIf that ignores the state argument.

  5. handleCallFrom_ :: forall s a b . (Serializable a, Serializable b) => StatelessCallHandler s a b -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    A variant of handleCallFrom_ that ignores the state argument.

  6. handleCallIf :: forall s a b . (Serializable a, Serializable b) => Condition s a -> CallHandler s a b -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    Constructs a call handler from an ordinary function in the Process monad. Given a function f :: (s -> a -> Process (ProcessReply b s)), the expression handleCall f will yield a Dispatcher for inclusion in a Behaviour specification for the GenProcess. Messages are only dispatched to the handler if the supplied condition evaluates to True.

  7. handleCallIf_ :: forall s a b . (Serializable a, Serializable b) => Condition s a -> (a -> Process b) -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    Constructs a call handler from an ordinary function in the Process monad. This variant ignores the state argument present in handleCall and handleCallIf and is therefore useful in a stateless server. Messges are only dispatched to the handler if the supplied condition evaluates to True See handleCall

  8. handleCall_ :: (Serializable a, Serializable b) => (a -> Process b) -> Dispatcher s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server

    Constructs a call handler from a function in the Process monad. The handler expression returns the reply, and the action will be set to continue.

    handleCall_ = handleCallIf_ $ input (const True)
    

  9. prioritiseCall :: forall s a b . (Serializable a, Serializable b) => (s -> a -> Priority b) -> DispatchPriority s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server.Priority

    Prioritise a call handler

  10. prioritiseCall_ :: forall s a b . (Serializable a, Serializable b) => (a -> Priority b) -> DispatchPriority s

    distributed-process-client-server Control.Distributed.Process.ManagedProcess.Server.Priority

    Prioritise a call handler, ignoring the server's state

Page 715 of many | Previous | Next