the other cleaner, but slower solution is to put like a hash map to continuations as a global variable, key it with a pointer as a long to the param1 passed in, and then within the callback, just get the pointer as long again and fetch out of the hashmap. Obviously a very poor performance solution, but it works 😕