Explicit Send and Sync #1734
Labels
📚 documentation
Do you like to read?
🎉 enhancement
New feature!
priority-medium
Medium priority issue
Milestone
Motivation
Currently, it is unclear which types are meant to be Send and/or Sync. For example:
Memory
is Sync, butInstance
is notFunction
is Sync butNativeFunc
is notThe syncness is also due to auto impl which can change with the implementation.
Proposed solution
Add
Sync
,!Sync
,Send
and!Send
implementation for all major types, includingInstance
,Module
,Function
,NativeFunc
,Exports
,Memory
and others I may have missed. Basically, any type with Arc inside, I think. Sync and Send would then be part of the public API.The text was updated successfully, but these errors were encountered: