Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/yuanyu90221/go_job_queue

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/yuanyu90221/go_job_queue

  • v0.0.0-20200516151344-361e7f5a1786
  • Source
  • Go
  • Socket score

Version published
Created
Source

go_job_queue

使用job queue 用來處理 耗時的 task

關鍵在於 channel數量的多寡 與實際上會放入的channel的數目有關

假設今天 channel設定buffer為 10

則放入第11個job時

這個job就會被block

因此要思考如何處理 block機制

1 用select來判目前channel是否滿

來決定是否寫入

2 用另一個go runtine讓 這個 新的job block在background不要block原本的程式

FAQs

Package last updated on 16 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc