[🚀 Feature]: [dotnet] [bidi] opt-in parallel event handler execution
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- csharp
- Área
- backend-api-design
Línea de trabajo
Start by locating the .NET BiDi event subscription implementation and the IEventSource<T> and IBiDi interfaces named in the proposed API. Trace how subscriptions invoke handlers and drain work during disposal, then check the related subscription tests. Done means an opt-in concurrency setting or equivalent API is implemented with the stated ordering, failure propagation, and disposal behavior clarified and covered by tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
BiDi event handlers run serially per subscription: one worker awaits each handler before taking the next event. Good default (ordered, isolated, drains on dispose), but throughput is bounded by handler latency.
50 console.log events with a 100 ms handler take ~5 s; with 8 concurrent handlers ~0.7 s.
Users wanting concurrency today must fire-and-forget inside the handler (losing failure propagation and drain-on-dispose) or write a custom StreamAsync() consumer.
Have you considered any alternatives or workarounds?
Opt in to invoke handlers parallelizable.
Proposed API
public sealed class SubscribeOptions
{
public int MaxConcurrency { get; set; } = 1;
}
// new overloads on IEventSource<T> (and IBiDi)
Task<ISubscription> SubscribeAsync(Func<T, Task> handler, SubscribeOptions options, CancellationToken ct = default);
Task<ISubscription> SubscribeAsync(Action<T> handler, SubscribeOptions options, CancellationToken ct = default);
Or something like chaining handlers:
source.WithParallel(8).SubscribeAsync(handler)
- Lenguaje dominante
- Java
- Estrellas
- 34.6k
- Forks
- 8.7k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 86
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SeleniumHQ/selenium
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
SeleniumHQ/selenium#18323 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
SeleniumHQ/selenium#17843 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verboseQuizá libre de nuevo @stefanpoia la tomó hace 25 días y no hay ningún pull request abierto. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
SeleniumHQ/selenium#17836 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
A-needs-triaging C-java D-chrome D-firefox I-defect OS-linux
Dificultad 4/5 1-2 días Aptitud para principiantes 53/100
SeleniumHQ/selenium#18324 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: [py] Generated bidi.UserAgentClientHints is empty — inline CDDL params drop the commandPosiblemente ocupada @titusfortner la tomó hace 3 días. AbiertoC-py OS-mac
SeleniumHQ/selenium#18312 · 2 asignados ·
Los mantenedores suelen responder en 1 día
Todos los issues de SeleniumHQ/selenium
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
btraceio/jafar#228 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
jenkinsci/git-client-plugin#1807 ·
-
area-templates triage:bot-seen triage:needs-human
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/aspire#22356 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Coral-Hive] locate() is typed as STRING instead of INT, so view schemas report a string columnAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
apache/flink-agents#1395 ·
Los mantenedores suelen responder en 1 día