square / workflow-swift

A Swift and Kotlin library for making composable state machines, and UIs driven by those state machines.

Home Page:https://square.github.io/workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converge on `rendered` func naming and the `Worker` counterpart

dhavalshreyas opened this issue · comments

Background

Our current API for Workers is:

context.awaitResult(Worker())

For rendering a Workflow:

Workflow().rendered(with: context)

Decision

To standardize the API b/w these two calls and their Android counterparts, the team has decided on:

Worker ::

Worker().running(in: context, key: ..., outputMap: ... )

Workflow ::

Workflow().rendered(in: context, key: ..., outputMap: ... )

Related Issues