I get an error:
Error: type mismatch: got <MyThreadType, proc (myThreadVars: MyThreadVars):
Future[system.void]{.gcsafe.}, MyThreadVars>
but expected one of:
proc createThread[TArg](t: var Thread[TArg];
tp: proc (arg: TArg) {.thread, nimcall.}; param:
TArg)
first type mismatch at position: 2
required type for tp: proc (arg: TArg){.nimcall, gcsafe.}
but expression 'myThread' is of type: proc (myThreadVars: MyThreadVars):
Future[system.void]{.gcsafe.}
1 other mismatching symbols have been suppressed; compile with
--showAllMismatches:on to see them
Run