FastlyAsyncTask currently takes an extra argument and a function pointer. This is a pain for cases where you want to close over a bunch of state, some of which may be C++ objects rather than JS values.
Care would need to be taken to ensure that JS values are stored inside Heap objects for GC safety.