开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
go-context

go-context

go

如何管理Go协程并停止特定的Go协程

英文: How to manage go routines and stop a specific go routine 问题 这是一个抽象的例子,用于说明实际情况。我必须通过调用函数B来停止函数A创...
huangapple 2022年3月17日148评论concurrency go
go

可以使用上下文和缓冲通道作为队列吗?我不确定这是否是线程安全的。

英文: Is it possible to use contexts and buffered channels as queue? And I'm not sure if this is t...
huangapple 2021年12月22日149评论go thread-safety
go

Go语言中关于上下文取消函数的最佳实践方法

英文: Best practices on go context cancelation functions 问题 我已经阅读了关于使用golang中的context包的一些文章。最近我在一个博客上看...
huangapple 2021年11月20日146评论go go-context
go

How to store a value of type context.CancelFunc using context.WithValue()?

英文: How to store a value of type context.CancelFunc using context.WithValue()? 问题 要在ctx中存储string类型的数...
huangapple 2021年10月6日151评论go go-context
go

`echo.Context`的`Set()`方法是否将值保存到底层的`context.Context`中?

英文: Does Set() method of echo.Context saves the value to the underlying context.Context? 问题 我正在使用 Ec...
huangapple 2021年9月25日151评论go go-echo
go

使用上下文和取消,Go协程不会终止。

英文: Using context with cancel, Go routine doesn't terminate 问题 我是你的中文翻译助手,以下是你提供的代码的翻译: 我对Go和Go并...
huangapple 2021年9月2日161评论concurrency go
go

使用上下文在连续的函数调用中共享一个公共的超时时间

英文: Using context to share a common timeout across consecutive function calls 问题 我想在Go程序中进行一些连续的函数调用...
huangapple 2021年8月12日143评论go go-context
go

将上下文设置为请求(request),当后者使用url.URL进行初始化时。

英文: Set context to request when the later is initialised with a url.URL 问题 我想创建一个 net/url.URL,然后在 ht...
huangapple 2021年8月11日151评论go http
go

防止上下文取消在业务逻辑执行过程中停止函数执行。

英文: Prevent context cancel from stopping function execution in the middle of business logic 问题 有没有一种...
huangapple 2021年8月9日138评论go multithreading
go

如何知道上下文是否已被取消?

英文: How to know if the context has been cancelled? 问题 如何判断上下文是否被取消? 在下面的示例代码中: 有两个任务。 如果其中任何一个任务先完成,...
huangapple 2021年8月2日157评论go go-context
3

文章导航

1 2 3
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客17246079

热门标签

r spring json javascript c# css arrays typescript android pandas flutter c++ html reactjs python node.js java go sql spring-boot

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码