So, I can refactor that sample and just pull it ou...
# squarelibraries
k
So, I can refactor that sample and just pull it out. @Ellen Shapiro, safely ignore that and just pull the list directly into Swift, but you’ll want to figure out a concurrency plan for real apps, obviously. That will likely involve freezing, although the data itself may not need to be.
e
OK - I’ll poke around at this a bit, I think it’s definitely a hairy issue doing async + native unfortuantely
k
Uses sqldelight off main thread. We have a refactor now that makes the whole thing more testable, but main dev just got pulled into “real” client work today, so have to see if we can get that up.

https://youtu.be/yhvsKlxPZPQ

👍 1
e
Oof, yeah that seems cool but REAL complicated.
k
Which?
e
having to write your own container to fire stuff off on the background thread
(although I suppose that’s what I get for working with a moving target)
k
Oh, well, the complexity is surface only. I can assure you the concurrency in the Droidcon app is anything but complex (or feature rich). As of today, though, you do have to roll your own, which is a much discussed issue.
e
yeah, for sure