Franz Busch
@franzbusch.bsky.social
640 followers 130 following 13 posts
Swift on Server @Apple
Posts Media Videos Starter Packs
Reposted by Franz Busch
sebsto.bsky.social
🚀 Swift AWS Lambda Runtime v2 is out!
Build modern, scalable, and efficient Lambda functions in pure Swift!

Full async/await, response streaming, background tasks, and Swift 6 support.

Release notes & docs: github.com/swift-ser...

#SwiftLang #Serverless #serversideswift2025
Release 2.0.0 · swift-server/swift-aws-lambda-runtime
The AWS Lambda Runtime for Swift v2 is now officially available. Overview Swift AWS Lambda Runtime v2 introduces a complete redesign of the API with async/await-first architecture, response streami...
github.com
Reposted by Franz Busch
swift.org
New tooling for profiling performance-critical services with Swift -- introducing the Swift Profile Recorder. More here: www.swift.org/blog/swift-p...
Screenshot of the output of Swift Profile Recorder, running Hummingbird’s hello example visualized in Speedscope.
Reposted by Franz Busch
serversideswift.info
This week the Swift team open sourced Swift Configuration to provide an standard API for configuring apps. Honza Dvorsky is here to walk us through it!
franzbusch.bsky.social
Another year another great conference. So many exciting talks and some great announcements as well!
serversideswift.info
2025 - that's a wrap

#swiftlang
#serversideswift2025
Reposted by Franz Busch
tracymiranda.bsky.social
The new Swift configuration API makes the most of Swift's type checking and expressivity to make it eady to solve common config tasks. @czechboy0.dev walks us through its features @serversideswift.info

forums.swift.org/t/introducin...
franzbusch.bsky.social
Really excited about this announcement! Looking forward to what everyone is going to build with this
serversideswift.info
Another Swift package has just dropped at the server conference! The Swift Temporal SDK is here, introduced by Franz Busch
Reposted by Franz Busch
serversideswift.info
Another Swift package has just dropped at the server conference! The Swift Temporal SDK is here, introduced by Franz Busch
Reposted by Franz Busch
swift.org
Introducing Swift Configuration, a new way to share and manage configuration for Swift. It's a smarter way to keep secrets safe and separate develop/test/prod environments. More here: forums.swift.org/t/introducin...
let config = ConfigReader(providers: [
    EnvironmentVariablesProvider(),
    try await JSONProvider(filePath: "/etc/config.json")
])
let httpTimeout = config.int(forKey: "http.timeout", default: 60)
print(httpTimeout) // prints 15
franzbusch.bsky.social
If you are interested in dipping your toes into using Swift for services checkout the amazing workshops in next week's Server-side Swift conference.
parisinbmore.bsky.social
#London crew: Amazing slate of workshops next week at serverside #swift conf - embedded, building services, integrating databases, linux, et al #swiftlang (www.serversideswift.info/schedule/)
Reposted by Franz Busch
davelester.dev
Two weeks until @serversideswift.info at the Science Museum in London! Looking forward to joining in-person and connecting with the community. #swiftlang
Reposted by Franz Busch
jweiss.io
Who else is going to #ServerSideSwift? Two weeks to go, can't wait to hear what y'all have been up to!

To make the deal even sweeter, I hear there's tasty 15% off discount code for www.serversideswift.info/tickets/: COMMUNITY15
Tickets | ServerSide.swift Conference
ServerSide.swift - the conference for server-side Swift developers
www.serversideswift.info
Reposted by Franz Busch
swift.org
With ✨Swift 6.2 ✨, you can now target WebAssembly, including WASI support. Get started here: www.swift.org/documentatio... #Wasm
franzbusch.bsky.social
Incredibly hyped for this year's @serversideswift.info conference. I'm giving a talk about writing durable and reliable workflows in Swift. 🏎️

I'm also looking forward to the many other amazing talks on the schedule. Looking forward to see everyone!
franzbusch.bsky.social
Great announcements at #wwdc25 today. If you are around and got Swift questions, come around to the Swift labs.
Reposted by Franz Busch
franzbusch.bsky.social
Yeah we should get that over the line. @lukasa.hachyderm.io.ap.brid.gy is working on all the strict concurrency adoption in NIO right now.
franzbusch.bsky.social
Yes a third one is setting a task cancellation handler. Throwing a CancellationError is really just one way of indicating that something got cancelled but returning early is also totally fine.
franzbusch.bsky.social
If the task is cancelled before or while sleeping the method will throw a `CancellationError`. Now you can ignore the error with `try?` it still means your task supports cancellation.

I hope this cleared things up a bit.
franzbusch.bsky.social
Now the second documentation linked on `cancel()`:

"Calling this method on a task that doesn’t support cancellation has no effect"

Just because the `Failure` type is `Never` doesn't mean that the task doesn't support cancellation. For example `Task.sleep(for:)` checks for cancellation.
franzbusch.bsky.social
The above will print `true` since the task is indeed cancelled. The doc that @czechboy0.dev linked does show a conditional conformance; however, `Never` conforms to `Error`. You can actually see that all `Failure`s value most conform to `Error` here:

developer.apple.com/documentatio...
franzbusch.bsky.social
We went down the wrong path here. Tasks with `Never` as their `Failure` type are still cancellable. However, I agree that the docs are very misleading here.

You can check this by simply doing this

let t = Task {
try? await Task.sleep(for: .seconds(1))
print(Task.isCancelled)
}
t.cancel()