status-desktop icon indicating copy to clipboard operation
status-desktop copied to clipboard

chore(nim): task simplification

Open arnetheduck opened this issue 1 year ago • 4 comments

This PR slightly simplifies the way tasks are passed between threads, removing some unnecessary boilerplate while improving type safety by removing casts.

This approach works because nimcall turns a proc into a simple pointer which just like cstring is safe to pass between threads.

Further simplification is possible, but left for a future PR.

arnetheduck avatar Mar 13 '24 15:03 arnetheduck