Skip to content

Make Stream API defined by subscribe() method#809

Merged
cowboyd merged 3 commits intov3from
hypothetical-stream-api
Nov 2, 2023
Merged

Make Stream API defined by subscribe() method#809
cowboyd merged 3 commits intov3from
hypothetical-stream-api

Conversation

@cowboyd
Copy link
Copy Markdown
Member

@cowboyd cowboyd commented Oct 30, 2023

Motivation

See discussion

Approach

  • replaces the bare [Symbol.iterator] with a subscribe()
  • normalize the channel, signal APIs now that there is a separate member subscribe, there is no need to have separate input and output fields. This fixes Settle on API for createSignal()/createQueue() and createChannel() #796
  • get rid of the Port interface which was not carrying its weight
  • make the weird op function a lift and use it to lift signal functions into operations for channel.
  • update docs

@cowboyd cowboyd force-pushed the hypothetical-stream-api branch from 9c687ee to 803c8d3 Compare October 30, 2023 21:46
@cowboyd cowboyd requested a review from neurosnap October 30, 2023 21:47
@cowboyd cowboyd force-pushed the hypothetical-stream-api branch 2 times, most recently from 6a614ec to 6442053 Compare November 1, 2023 20:28
@cowboyd cowboyd marked this pull request as ready for review November 1, 2023 20:28
@cowboyd cowboyd changed the title What would Stream look like with a subscribe() method Make Stream API defined by subscribe() method Nov 1, 2023
@cowboyd cowboyd force-pushed the hypothetical-stream-api branch from 6442053 to 4005730 Compare November 2, 2023 20:22
@cowboyd cowboyd merged commit c1711e5 into v3 Nov 2, 2023
@cowboyd cowboyd deleted the hypothetical-stream-api branch November 2, 2023 20:23
taras pushed a commit that referenced this pull request Aug 24, 2025
Make `Stream` API defined by subscribe() method
taras pushed a commit that referenced this pull request Nov 12, 2025
Make `Stream` API defined by subscribe() method
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.

Settle on API for createSignal()/createQueue() and createChannel()

2 participants