Nash Taylor
12/17/2024, 3:58 AMbucket = S3Bucket.load("bucket-name")
The type of bucket here is S3Bucket | Coroutine[Any, Any, S3Bucket]. Because of that, any downstream function that uses bucket is going to take issue with its type. I'm clearly using it in a synchronous context here (the parent flow is synchronous), so how can I call this in a way that clearly indicates that I want a synchronous response and a narrow type? With the way things are now, I'm littering cast() all over the place, and it's pretty gross. But maybe I'm just going about this wrong.Alexander Azzam
12/17/2024, 4:09 AMNash Taylor
12/17/2024, 4:13 AMS3Bucket.load() and get a fully synchronous return type, because there will be an S3Bucket.aload() equivalent?Alexander Azzam
12/17/2024, 4:42 AM