obs-browser icon indicating copy to clipboard operation
obs-browser copied to clipboard

Background Worker written in Go

Open fabriziomello opened this issue 6 years ago • 5 comments

Hi,

We did some experiments, look at: https://github.com/prest/bgworker

fabriziomello avatar Jan 02 '18 11:01 fabriziomello

Yes I've seen that and add a star to that project :) But didn't have time/energy/some other excuse ... I leave this open as a reminder to do it. Or if anyone can do it I will pull it right away

microo8 avatar Jan 02 '18 11:01 microo8

any news to this? being able to use goroutines would be absolutely awesome.

omani avatar Apr 04 '18 21:04 omani

I've been testing this. It works fine, also have ideas how to integrate it to plgo tool. But I've got a problem, that goroutines are not starting. Is someone familiar with it? I must somehow enable threading in the background worker?

microo8 avatar Jun 28 '18 06:06 microo8

@microo8 would be nice if you share some code sample

fabriziomello avatar Jun 28 '18 18:06 fabriziomello

The code that I experimented with is in the test/bgw directory

Wanted to isolate the get_got _sigterm and wait_latch to something similar as the time.Tick method. It needs to run a separate goroutine to wait for the latch. (Also need to add close on that channel)

Also tried to run a goroutine, that doesn't use the log (maybe the log isn't accessible from another thread), but does something else (like touch a new file). But it doesn't run.

microo8 avatar Jun 29 '18 07:06 microo8