How do I wait for the callback to finish before I return the value?

public List<S3Object> ListObjects(string bucketname, string identityId) { List<S3Object> objectList = new List<S3Object>(); var request = new ListObjectsV2Request() { BucketName = bucket_name, Prefix = identityId }; Client.ListObjectsV2Async(request, (responseObject) => { if (responseObject.Exception == null) { List<S3Object> list = new List<S3Object>(); responseObject.Response.S3Objects.ForEach((o) => { objectList.Add(o); }); } else { Debug.Log(responseObject.Exception); } }); //return objectList; // return the…

Details

Maven using wrong dependency version

The dependency version I want to use is 4.5.0 as specified in my pom.xml <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> <version>4.5.0</version> </dependency> <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna-platform</artifactId> <version>4.5.0</version> </dependency> However, when I run mvn clean install -DskipTest=true. Maven will download and use version 4.2.2. libraries I tried searching in the entire project thinking maybe there are other files(in this case…

Details