Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tea.Sequentially command #46

Merged
merged 1 commit into from
Jan 17, 2021
Merged

Add a tea.Sequentially command #46

merged 1 commit into from
Jan 17, 2021

Conversation

caarlos0
Copy link
Member

The idea is to produce a single command that sequentially runs the given commands, returning the first non-nil msg.

Useful for things like saving the current state before quitting, or saving something and then refreshing a list...

Extracted from: https://github.com/caarlos0/tasktimer

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Copy link
Member

@meowgorithm meowgorithm left a comment

Choose a reason for hiding this comment

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

LGTM!

@meowgorithm meowgorithm merged commit a0c6074 into master Jan 17, 2021
@meowgorithm meowgorithm deleted the seq branch January 17, 2021 18:14
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.

None yet

2 participants