Ended up using threadpools as you suggested, thanks for the hints! This is the end result, which seems to work: https://github.com/mvdan/libaccesspoint/commit/38a37ac5a482ace1c8196267d604832654075683
It's still too verbose in my opinion, but it works and seems correct. Reminded me of how futures work in a very similar way in Python. Comments and criticism welcome if you see anything horrible in that code :) On Tue, May 12, 2015 at 21:49:13 +0200, Daniel Martí wrote: > This looks promising, thank you Michael! Will test it out :) -- Daniel Martí - [email protected] - http://mvdan.cc/ PGP: A9DA 13CD F7A1 4ACD D3DE E530 F4CA FFDB 4348 041C
pgpmDOq2B5GNk.pgp
Description: PGP signature
_______________________________________________ List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev To unsubscribe, email: [email protected]
