I use the AsyncBucket throughout my whole sample app, but in one place it would be nice to get the sync version. As there is a way to get the AsyncBucket from the Bucket, is there any reason why there is no way to get the sync bucket from the AsyncBucket? I build the connection like:
Bucket bucket = cluster.openBucket(); return bucket.async();
I expected this to work as well
AsyncBucket asyncBucket = cluster.openBucket().async(); asyncBucket.sync()
Just wondering why this is not available, and what is the recommended way to to something like this? Exposing the original sync bucket along with the async one maybe?