- Notifications
You must be signed in to change notification settings - Fork524
Open
Description
ReSwift/ReSwift/CoreTypes/Middleware.swift
Lines 9 to 11 in11f0a2e
| publictypealiasDispatchFunction=(Action)->Void | |
| publictypealiasMiddleware<State>=(@escapingDispatchFunction,@escaping()->State?) | |
| ->(@escapingDispatchFunction)->DispatchFunction |
Should we be suggesting Middleware implementations to use@MainActor-annotated closures? And limit DispatchFunction the same way?
publictypealiasDispatchFunction=@MainActor(anyAction)->VoidpublictypealiasMiddleware<State>=@MainActor(@escapingDispatchFunction,@escaping()->State?)->@MainActor(@escapingDispatchFunction)->DispatchFunction
Posting this for discussion because I'm very unexperienced with that, still
Metadata
Metadata
Assignees
Labels
No labels