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

Added context.Context support #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Nov 21, 2018

  1. Added context.Context support

    Added the method `MainLoopWithContext`, which allows for callers to supply their own context for running a `Gui`. I made this addition because of a project I'm personally working on (and hope to add to the README list soon). My project is heavily concurrent and their exists an abstraction layer between the `Gui` and a backend. The abstraction layer handles many things, mainly monitoring `os.Signal`s and others, which means I couldn't/(don't want to) allow `Gui` to handle termination. Currently, there is no way to solve my problem. Hence, this pull request adds the solution to my problem and hopefully brings even more possibilities to what can be done with `gocui`.
    Zaba505 committed Nov 21, 2018
    Configuration menu
    Copy the full SHA
    ae51309 View commit details
    Browse the repository at this point in the history