Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

WebGLThreadingPatcher

> 编程语言
Open source

WebGL Threading Patcher This plugin makes more async await code works in Unity WebGL. For instance all of following will work: charp task.C…

100 stars0 likes0 views
WebsiteGitHub

About

WebGL Threading Patcher This plugin makes more async await code works in Unity WebGL. For instance all of following will work: charp task.C…

WebGL Threading Patcher

This plugin makes more async await code works in Unity WebGL. For instance all of following will work:

charp
task.ContinueWith(t => Debug.Log("ContinuWith works"));

Task.Run(() => Debug.Log("Task.Run works!"));

await task.ConfigureAwait(false);

await Task.Delay(1000);

How Does it work?

This plug-in use IIl2CppProcessor callback to hijack mscorelib and change some methods implementation. It change ThreadPool methods that enqueue work items to delegate work to SynchronizationContext so all items will be executed in same thread. Also it patch Timer implementation to use Javascript timer functionality.

Limitations

All tasks will be executed by just one thread so any blocking calls will freeze whole application. Basically it similar to async await behavior in Blazor.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言