really a bummer that they require function keywors so that the gpu function can access this.threads ! Would have been cleaner IMO - and more modern ideomatic - if the callback would have a parameter that would refer to the gpu.
otherwise this stuff is AWESOME. it would be great if we could reduce our dependency on python