Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Creating a context should be done using finer-grained in-parallel steps

Abierto
#919 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
api

Línea de trabajo

The problem is in the spec steps for create-a-context, which run in parallel from dom-ml-createcontext, and they set context.[[lost]] to a new promise in the realm. Read the HTML spec's event-loop guidance for spec authors, then decide how to split the work: create the MLContext on the event loop, run a finer in-parallel step to start the context timeline, and queue a task to resolve or reject the promise. Done means no realm object is touched from parallel steps, and the spec's promise handling is still correct. Expect spec-process discussion before any change lands.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

conventions

create-a-context is called from in-parallel steps defined as part of dom-ml-createcontext.

But creating a context then manipulates realm objects from those parallel steps, for example: "Set context.[[lost]] to a new promise in realm.", which is against the guidance in the HTML spec on event-loop-for-spec-authors.

So I propose creating the MLContext object directly using steps on the event-loop, and then just adding a finer-grained in-parallel step to "start the timeline for the context in an implementation defined manner", and then to queue a task to reject or resolve the promise based on whether that operation was successful.

Lenguaje dominante
Bikeshed
Estrellas
566
Forks
72
Merge medio
6 d 5 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de webmachinelearning/webnn

Todos los issues de webmachinelearning/webnn

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.