Skip to content

@web-engine-dev/resources


@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 ​

ResourceDescriptor<T>

Resource descriptor to wrap

Returns ​

ResourceDescriptor<NonSend<T>>

A NonSend wrapped descriptor

Proprietary software. All rights reserved.