Bei Li

Developer of Mastoot, servant of three cats, a human being from Earth.

Bei Lilibei
2025-02-02

@PeterSommerlad Sorry for the late reply.

My account works fine with Mastoot today, does the issue still exist on your side?

Bei Lilibei
2024-05-12

@mattiem OK I could have a try. But this code path is super early, there's no much code run before it.

Bei Lilibei
2024-05-12

@mattiem I can't reproduce it in local, so help from debugging tools are unavailable. 🤷‍♂️

Bei Lilibei
2024-05-12

@mattiem Yes, but I can't get more information either.

Bei Lilibei
2024-05-11

Weird crash, I have no clue what I did wrong. 🫠

Bei Lilibei
2024-05-08

@bigzaphod Is OSLog Logger Sendable? forums.developer.apple.com/for

So `@ preconcurrency` seems legit…

Bei Lilibei
2024-04-24

@MoritzGiessmann is 5,000. 😂 I guess. somehow it’s a good number.

Bei Lilibei
2024-04-19

Is there an ideal limit for cached home timeline posts? Maybe 5,000?

Bei Lilibei
2024-04-17

@jjoelson @shadowfacts @mattiem Even you somehow get these tasks executing in order, if I understand correctly, the actor has also no guarantee for the order of awaited `update(offset:)` calls.

> This is conceptually similar to a serial DispatchQueue, but with an important difference: tasks awaiting an actor are not guaranteed to be run in the same order they originally awaited that actor.

github.com/apple/swift-evoluti

Bei Lilibei
2024-04-17

@jjoelson @mattiem Will this be affected by the actor execution order issue? I roughly remember that actors have no guarantee for execution order.

Bei Lilibei
2024-04-17

@mattiem @jjoelson OK now we got these:

Bei Li boosted:
2024-04-16

⏰ Friendly reminder that Swift 6 is right around the corner and that you can start getting your app ready for the big release!

⚠️ There are some source incompatible changes behind feature flags you can start adopting now!

#iosdev #swiftlang

polpiella.dev/enable-upcoming-

Bei Li boosted:
2024-04-16

I'm officially starting an iOS/macOS developer meetup in Kansai, Japan! "Swift Kansai" will hold its first meeting on June 30th to chat about everything Apple announced at WWDC. If you're in the area come join us!!

meetup.com/swift-kansai/events

Bei Lilibei
2024-04-16

@mattiem This is what I'm actually want to achieve, store table view content offset to disk. I assume I should do file writing in detached task since it may be time consuming and blocking main thread.

In my experiments, this code snippet work good for debounce, I do only get the last result every time the table view scrolls.

Order seems good too since task creation and cancellation all happens on main actor.

My only concern is how much resource will cost by those task creations.

Bei Lilibei
2024-04-16

@mattiem feel more uncertain. 🫠

Bei Lilibei
2024-04-15

Is this a good way to do simple debounce? Will Task creations take too much resources? 🤔

@MainActor class Foo { var task: Task<Void, Never>? LT RGO task?.cancel() task = Task.detached(priority: .high) { do { try await Task.sleep(for: .seconds(1)) N coc } catch { print(error) b b b b
Bei Li boosted:
🌪 MikeMathia.com 📡mikemathia@ioc.exchange
2024-04-14
Bei Lilibei
2024-04-12

@duncandesi9n Great! And could you open TestFlight even when the app hasn’t fully developed yet? (not mean right now but I really want to see the UI in action!)

Bei Lilibei
2024-04-12

@duncandesi9n This looks so good! But I can’t find Dexie on App Store, how can I catch the app? 👀

Bei Lilibei
2024-04-12

Running good again!

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst