Using wstd from another event loop on WASI 0.2, without block_on
Mantenedores costumam responder em até 5 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 30/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Ativa
- Stack de tecnologia
- rust, wasm
- Domínio
- backend, operating-systems
Direção de pesquisa
Start by reproducing the panic when wstd futures are created or polled from GPUI tasks during the exported tick function, using the embedded_gpui and wasm32-wasip2 context described here. Read wstd's runtime and reactor integration alongside GPUI's executor; done would require an agreed, supported way to use http::Client, net::TcpListener, or timers without blocking block_on.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
We run GPUI (Zed's UI framework) inside a wasm32-wasip2 component, through embedded_gpui. The host drives the component by calling an exported tick function repeatedly. Each call runs GPUI's executor until it is idle and must return promptly: the plugin's UI has to keep responding, and the host enforces a time budget per call.
Plugin code, running as GPUI tasks, wants to await wstd's I/O: http::Client, net::TcpListener, timers.
Outside block_on this panics as soon as a wstd future is created or
polled:
Reactor::current must be called within a wstd runtime
block_on isn't usable here. It holds the thread until the future completes, so the UI freezes for the whole request, and the call can outlive the host's time budget. Long waits, such as an OAuth redirect listener waiting for the user to finish signing in in their browser, can't be done at all.
So there is no way to use wstd from a component whose thread belongs to another event loop. Is there a supported way to do this, or would you be open to adding one?
- Linguagem predominante
- Rust
- Estrelas
- 136
- Forks
- 21
- Merge médio
- 5d 6h
- PRs com merge (30d)
- 11
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de bytecodealliance/wstd
-
Implement `http` on WASIp3Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
bytecodealliance/wstd#164 ·
Mantenedores costumam responder em até 5 dias
-
Implement `net` on WASIp3Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
bytecodealliance/wstd#161 ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
bytecodealliance/wstd#151 ·
Mantenedores costumam responder em até 5 dias
-
Tracking issue for WASIp3Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 32/100
bytecodealliance/wstd#141 · 6 comentários · 1 reação ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
bytecodealliance/wstd#109 ·
Mantenedores costumam responder em até 5 dias
Todas as issues de bytecodealliance/wstd
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
zcashlabs/thus-spoke-zakura#153 ·
Mantenedores costumam responder em até 1 dia
-
app bug windows-os
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
Mantenedores costumam responder em até 1 dia
-
Improve sublime text syntaxAbertaeditor good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
funnyboy-roks/inq#54 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
pnpm/pnpm#16635 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: Bedrock request metadata forwarding does not work for /embeddingsTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug llm translation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia