tito wrote:I'm not sure how Lock works.. I can't help there.. but if that block the main thread, then I'll avoid it
tito wrote:Imagine.. you are going to "tint" the gutter if the line you are on, is marked as modified by your.. VCS.. you call.. run() .. imagine it takes 1 second to resolve if the line has been modified... and you execute "run" 4 time per second.. you have 4 running "runs"... The suggested implementation should track if the process is running before trying to running it again, as in item1
tripshock wrote:I do think though that this should be something natively available as part of the API, because:
- It's something that is commonly needed.
- It's something that is hard to get right, and there are bad implementations out there.
- It can probably be implemented very efficiently natively.
Users browsing this forum: No registered users and 5 guests