Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Conversation

hyperthunk
Copy link
Member

This PR adds support for performing arbitrary STM actions that yield an input, then running a standard handler against them. The STM actions are handled as per matchSTM in the underlying distributed-process library, such that they are composed with all the other matchers (e.g., typed channel / port reading, and general mailbox handling of Call/Cast messages).

Note: Incomplete PR.

@hyperthunk hyperthunk self-assigned this Feb 20, 2017
-- first, or the stm transaction. As a result, assuming that your server process
-- can die/fail/exit on evaluating the read end of the STM write we perform here
-- (and we assume this is very likely, since we apply no safety rules and do not
-- even worry about serialisating thunks passed from the client's thread), it is
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/serialisating/serialising/

-- 'serve', and passing an initialised 'PrioritisedProcessDefinition'.
--
-- Note that prioritised process definitions cannot utilise control channels,
-- not can the @handleExternal@ family of expressions be used with them. This
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/not/nor/

-- of Cloud Haskell's /Process/ monad, but can also be used as a channel for
-- sending and/or receiving non-serializable data to or from a managed process.
-- Obviously if you attempt to do this across a remote boundary, things will go
-- spectacularly wrong. The APIs provided to not attempt to restrain this, or
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/to/do/

--
-- As unpleasant as this is, there's little we can do about it without making
-- false assumptions about the runtime. Cloud Haskell's semantics guarantee us
-- only that we will see /some/ monitor signal in the even of a failure here.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/even/event/

@hyperthunk hyperthunk merged commit 061135b into master Feb 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant