theatre-dev 0.1.1 → 0.1.1.1
raw patch · 2 files changed
+6/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- library/TheatreDev/StmBased.hs +5/−4
- theatre-dev.cabal +1/−1
library/TheatreDev/StmBased.hs view
@@ -138,7 +138,7 @@ -- | Spawn an actor which processes messages in isolated executions. spawnStatelessIndividual ::- -- | Clean up when killed.+ -- | Clean up when killed or exception is thrown. IO () -> -- | Interpret a message. (message -> IO ()) ->@@ -150,7 +150,7 @@ -- | Spawn an actor which processes all available messages in one execution. spawnStatelessBatched ::- -- | Clean up when killed.+ -- | Clean up when killed or exception is thrown. IO () -> -- | Interpret a batch of messages. (NonEmpty message -> IO ()) ->@@ -165,7 +165,7 @@ spawnStatefulIndividual :: -- | Initial state. state ->- -- | Clean up when killed or exception is thrown..+ -- | Clean up when killed or exception is thrown. (state -> IO ()) -> -- | Process a message and update state. (state -> message -> IO state) ->@@ -179,7 +179,7 @@ spawnStatefulBatched :: -- | Initial state. state ->- -- | Clean up when killed or exception is thrown..+ -- | Clean up when killed or exception is thrown. (state -> IO ()) -> -- | Process a batch of messages and update state. (state -> NonEmpty message -> IO state) ->@@ -231,6 +231,7 @@ -- | Block waiting for the actor to die either due to getting killed -- or due to its interpreter action throwing an exception.+-- The exception will get rethrown here. wait :: Actor message -> IO () wait actor = atomically actor.wait >>= maybe (pure ()) throwIO
theatre-dev.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: theatre-dev-version: 0.1.1+version: 0.1.1.1 category: Concurrency, Actors synopsis: Minimalistic actor library experiments description: