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 program-level quit convenience method #141

Merged
merged 1 commit into from
Oct 15, 2021
Merged

Conversation

meowgorithm
Copy link
Member

@meowgorithm meowgorithm commented Oct 4, 2021

This update adds a convenience function for quitting Bubble Tea programs from outside a Program. So instead of doing this:

p := tea.NewProgram(...)
p.Send(tea.Quit())

You can just…

p := tea.NewProgram(...)
p.Quit()

@meowgorithm meowgorithm merged commit 1f12bda into master Oct 15, 2021
@meowgorithm meowgorithm deleted the program-quit branch October 15, 2021 14:37
@rohanshiva
Copy link

Can you please add an example of this command?

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