I am trying out the cpp driver and had a question related to future object in async code handling.
I believe the future object created during any cassandra should be deleted(free) only after callback is called? Am not aware of internals how the driver handles it, but a logical guess.
Here is the sample am referring to:
Object created and free'd immediately here
https://github.com/datastax/cpp-driver/blob/1.0/examples/callbacks/callbacks.c#L80-L82
Callback called uses future object here:
https://github.com/datastax/cpp-driver/blob/1.0/examples/callbacks/callbacks.c#L96
Can someone please advice if this is correct in this drivers context?
Thanks,
Kaustubh
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-us...@lists.datastax.com.
Cheers,
Kaustubh