@web-engine-dev/resources / nonSend
Function: nonSend()
nonSend<
T>(descriptor):ResourceDescriptor<NonSend<T>>
Mark a resource as non-sendable (main thread only)
Type Parameters
T
T
Parameters
descriptor
Resource descriptor to wrap
Returns
ResourceDescriptor<NonSend<T>>
A NonSend wrapped descriptor