Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Do not use URLSession or Task { } for async processing

Aperta
#390 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
swift
Ambito
api

Direzione di ricerca

No files or tests are named; start by searching the repository for URLSession and Task { } to identify the affected async-processing paths. Check how the project handles Linux support and background jobs, then run the relevant tests. Done means the identified uses follow the alternatives described in the issue and the affected tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As part of Swift best practices the following items are not recommended for production use:

  • URLSession causes issues when running on Linux, please use AsyncHTTPClient instead
  • Task { } to execute background jobs are considered unstructured concurrency, and it is recommended to use withThrowingTaskGroup instead:
await withThrowingTaskGroup(of: Void.self) { group in
            group.addTask {
                ...
            }
}
Lingua principale
Swift
Stelle
2.9k
Fork
519
Merge medio
4g 9h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MacPaw/OpenAI

Tutte le issue di MacPaw/OpenAI

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.