Skip to content

Rename FollowStream to RelayStream. Add AsyncRelayStream. - #43

Merged
cmeyer merged 1 commit into
nion-software:masterfrom
cmeyer:async-relay-stream
Jul 29, 2026
Merged

cmeyer merged 1 commit into
nion-software:masterfrom
cmeyer:async-relay-stream

Conversation

@cmeyer

@cmeyer cmeyer commented Jul 24, 2026 •

Copy link
Copy Markdown
Collaborator

AsyncRelayStream is a useful utility class for coordinating streams coming from non-UI thread to the UI thread.

It is currently used in the display pipeline. This PR copies this class from nion.swift.model.DisplayItem for general use here. The only difference is the AsyncRelayStream here gets initialized with the current stream value, whereas the display pipeline version does not.

The FollowStream is deprecated but provided for backward compatibility. Use the more descriptive RelayStream instead.

Includes two tests.

@KRLango KRLango left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@cmeyer
cmeyer merged commit 036b39b into nion-software:master Jul 29, 2026
14 checks passed
@cmeyer
cmeyer deleted the async-relay-stream branch July 29, 2026 15:10
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.

2 participants