Probably the easier solution is to make the callbacks all local to the scope of the function and that way not be limited to only storing one.

Again this is not truly necessary for APIs that are actually synchronous, but if there are ones that are asynchronous it is necessary