Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example and README for background tasks #418

Merged
merged 6 commits into from
Nov 7, 2024

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Oct 26, 2024

Add code example for Lambda Background Tasls

Motivation:

Partially addresses #376

Modifications:

Add a directory Examples/BackgroundTasks with code sample and a README

I also slightly modified Lambda+Codable.swift to provide default JSONEncoder() and JSONDecoder() to not require user to create their own if they don't need to.

Result:

Developers know how to use Lambda background tasks

@sebsto
Copy link
Contributor Author

sebsto commented Oct 26, 2024

This code requires to merge #417 to work
It will compile but no logger debug statement are printed without #417

@sebsto sebsto changed the title Add an example for background tasks Add an example and README for background tasks Oct 26, 2024
@sebsto sebsto merged commit ca82709 into swift-server:main Nov 7, 2024
24 of 25 checks passed
@sebsto sebsto deleted the sebsto/backgroundtasks branch November 7, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants