- Should be possible to use async/await in a single- or dual-threaded graphics context.
- Basic implementation can take inspiration therefore from the windows forms and/or wpf synchronization contexts.
- Keep heap allocations down where possible to avoid GC hits.
- Therefore, ValueTask everywhere.
In order to control async/await control flow, two mechanisms can be used:
- Custom
SynchronizationContext
- Custom
GetAwaiter
s