Need some advice and comments (ponPonLoader: 4chan thread medias watcher)

polaris · · 44 次点击    
<p>Should service&#39;s <a href="https://github.com/reinerRubin/PonPonLoader/blob/master/download_task_processor.go#L63">&#34;run method&#34;</a> be async or sync? Where I can read about standard approaches or check good sources.</p> <p>I have tried to implement a <a href="https://github.com/reinerRubin/PonPonLoader/blob/master/download_task_processor.go#L28">worker pool</a> which gives &#34;N&#34; chances to failed tasks. Is my attempt correct? Is there way to avoid buffered channels?</p> <p>I am also not sure about package grouping and <a href="https://github.com/reinerRubin/PonPonLoader/blob/master/thread_watcher.go#L37">&#34;thread watcher&#34;</a>. It looks quite messy.</p> <p>// <a href="https://github.com/reinerRubin/PonPonLoader">Github</a></p>
44 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传