Skip to content

Extend stateful API #59

@coot

Description

@coot

In the Stateful.ReqResp example we need to pass req resp in MsgResp.

    MsgResp :: Typeable resp
            => req resp
            -> resp     -- ^ respond
            -> Message (ReqResp req) (StBusy resp) StIdle

It isn't sent over the wire, but it's useful to have access to it when encoding / decoding resp.
We should extend the stateful API, so that not only State StIdle is provided (state data for the target state), but also State (StBusy resp) (state data for the initial state).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requeststateful-apiissues / PRs related to the stateful API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions