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

Support Context through all the lifecycle of OpenSergoClient #8

Open
jnan806 opened this issue Nov 22, 2022 · 0 comments
Open

Support Context through all the lifecycle of OpenSergoClient #8

jnan806 opened this issue Nov 22, 2022 · 0 comments
Labels
kind/feature Category issues or PRs related to feature request

Comments

@jnan806
Copy link
Collaborator

jnan806 commented Nov 22, 2022

Issue Description

Type: feature request

Describe what feature you want

According to the characteristics of go language, We can control the all lifecycle of go-framwork by context.
And we need to integrate the context into OpenSergoClient, to make OpenSergoClient more flexible.

Through context, we can manage lifecycle unified by realizing:

  • receive context from upstream framework, use the context in OpenSergoClient self.
  • transfer context to downstream framework, do some special actions which OpenSergoClient owned before transfer

--

根据 go 的特性, 我们可以通过 context上下文来控制 go框架的生命周期。这里,我们需要将context集成到 OpenSergoClient 中,从而使 OpenSergoClient 变得更加灵活。

通过contex上下文,我们可以实现以下两点来统一管理生命周期:

  • 接收上游框架的context上下文, 将其集成到自身
  • context中添加自己的信息以及操作,传递到下游框架

Additional context

The context need to manage lifecycle of OpenSergoClient and all goroutines OpenSergoClient created.

--

context 需要统一管理 OpenSergoClient 以及 OpenSergoClient 创建的所有 goroutine

@jnan806 jnan806 changed the title Support Context through all the lifecycle of Support Context through all the lifecycle of OpenSergoClient Nov 22, 2022
@sczyh30 sczyh30 added the kind/feature Category issues or PRs related to feature request label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or PRs related to feature request
Projects
None yet
Development

No branches or pull requests

2 participants