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

Implement context-aware RunEventLoop #1169

Merged
merged 2 commits into from Apr 13, 2023

Conversation

lololozhkin
Copy link
Contributor

@lololozhkin lololozhkin commented Feb 15, 2023

implemented RunEventLoopContext method. now socketmodehandler will react on context cancellation

PR preparation
  • Run make pr-prep from the root of the repository to run formatting, linting and tests.

…modehandler will react on context cancellation
@lololozhkin
Copy link
Contributor Author

resolves #1162

@lololozhkin
Copy link
Contributor Author

Hi, added context to run method on socketmodehandler. make pr-prep was successful. Could you please merge it in master, to resolve #1162 ?

@lololozhkin
Copy link
Contributor Author

and, could you please approve workflow run? It's my first PR..


return r.Client.Run()
}

func (r *SocketmodeHandler) RunEventLoopContext(ctx context.Context) error {

Choose a reason for hiding this comment

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

Suggested change
func (r *SocketmodeHandler) RunEventLoopContext(ctx context.Context) error {
func (r *SocketmodeHandler) RunEventLoopWithContext(ctx context.Context) error {

Copy link
Member

Choose a reason for hiding this comment

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

Since naming convention for context-aware methods has not been determined, leave it as it is in this time.

@sbansal7
Copy link

sbansal7 commented Apr 5, 2023

Hi @lololozhkin any chance you could respond to the above comment? -Thanks!

@kanata2
Copy link
Member

kanata2 commented Apr 13, 2023

Thanks! LGTM 👍

@kanata2 kanata2 changed the title implemented RunEventLoopContext method. now socketmodehandler will react on context cancellation Implement context-aware RunEventLoop Apr 13, 2023
@kanata2 kanata2 merged commit 5281ebe into slack-go:master Apr 13, 2023
@lololozhkin lololozhkin self-assigned this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants