ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

So a quick question: Lets say I have a system which vends me an AsyncStream. I want to listen to that in my ViewModel, map the result and assign it to my state variable. What is the best way to do that? I am currently spinning up a Task, but wondering whether there is a better tool.

Mar 26, 2025, 9:08 PM

Record data

{
  "uri": "at://did:plc:dnhprv4s4ctbua7d6nqlzmhb/app.bsky.feed.post/3llcozfhqfs2f",
  "cid": "bafyreichv5562mnq6ewcxtzpivkwgdbbn3vunwn6rplth5xfqhg5l2wkty",
  "value": {
    "text": "So a quick question:\n\nLets say I have a system which vends me an AsyncStream. I want to listen to that in my ViewModel, map the result and assign it to my state variable. What is the best way to do that? I am currently spinning up a Task, but wondering whether there is a better tool.",
    "$type": "app.bsky.feed.post",
    "langs": [
      "en"
    ],
    "createdAt": "2025-03-26T21:08:54.939Z"
  }
}