Skip to content

Conversation

@jamieQ
Copy link
Contributor

@jamieQ jamieQ commented Feb 3, 2023

Description

since we've bumped to swift 5.7, let's add primary associated types in some more places

  • adds <Rendering, Output> PAT to AnyWorkflowConvertible
  • adds <WorkflowType> PAT to WorkflowAction
  • adds <Output> to the various definitions of Worker

Checklist

  • Unit Tests
  • UI Tests
  • Snapshot Tests (iOS only)
  • I have made corresponding changes to the documentation

public protocol Worker<Output>: AnyWorkflowConvertible where Rendering == Void {
/// The type of output events returned by this worker.
associatedtype Output
associatedtype WorkerPublisher: Publisher where
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i assume we don't want this one to also be a primary associated type, but do correct me if there's some use case in which that would be valuable that i'm overlooking

@jamieQ jamieQ marked this pull request as ready for review February 6, 2023 18:51
@jamieQ jamieQ requested a review from a team as a code owner February 6, 2023 18:51
@jamieQ jamieQ merged commit 3787a94 into main Feb 6, 2023
@jamieQ jamieQ deleted the jquadri/more-pats branch February 6, 2023 19:14
jamieQ added a commit that referenced this pull request Feb 6, 2023
* main:
  [fix]: use weak reference to internal sinks when vending to clients (#189)
  [feat]: add primary associated types to more protocols (#188)
  [chore]: pre major version bump cleanup (#187)
  [chore]: bump minimum deployment & swift versions (#186)
  Abstract ViewEnvironment to shared framework (#185)
  Bump activesupport from 6.1.4.4 to 6.1.7.1 (#183)
  [feat]: add primary associated types to `Workflow` protocol (#181)
  [chore]: update swiftformat ifdef indent rule to no-indent (#182)
jamieQ added a commit that referenced this pull request Feb 25, 2023
…ow-workflow-conformance

* origin/main:
  Expose AnyScreen.wrappedScreen for inspection (#193)
  Improve introspection for SignalProducerWorkflow actions (#192)
  [release]: bump version to 2.2.0 & remove separate concurrency version (#191)
  [feat]: add runtime observation API (#168)
  [chore]: refactor some internal actions to use existential any (#190)
  [fix]: use weak reference to internal sinks when vending to clients (#189)
  [feat]: add primary associated types to more protocols (#188)
  [chore]: pre major version bump cleanup (#187)
  [chore]: bump minimum deployment & swift versions (#186)
  Abstract ViewEnvironment to shared framework (#185)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants