actix / actix/actix-web

async `HttpServer::new` as alternative to `data_factory`

Offen
#2,286 1 Kommentar 5 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
A-web C-improvement
Vorherrschende Sprache
Rust
Sterne
24.8k
Forks
1.9k
Ø Merge
23 Std. 10 Min.
Gemergte PRs (30 T.)
26

Beschreibung

Part of the apeal of `App::data_factory` is that it uses the local reactor when instantiating app data. It's equivalent and more natural to make `HttpServer::new` async.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by comparing the existing App::data_factory behavior with HttpServer::new, focusing on how each uses the local reactor when instantiating app data. Define the async API's intended behavior and compatibility before changing anything; done means HttpServer::new provides the proposed async alternative without losing the data_factory behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.