Page 1 of 1

Support of System.Threading Class

Posted: 29 Jul 2022, 21:36
by colin14321
Hi there,

I realized that some classes in System.Threading are missing from Noesis, such as Timer, DispatcherTimer, Interlocked, CancellationToken, Timeout.

Will these classes be added in the future?

Thank you.

Re: Support of System.Threading Class

Posted: 01 Aug 2022, 12:42
by sfernandez
Hi, the classes defined in System.Threading namespace (Timer, CancellationToken and Timeout) are already available as they are part of netstandard 2.0 implementation. Noesis only offers multiplatform implementations for those classes that are not part of netstandard (usually those in Windows namespace).

I see that DispatcherTimer is part of System.Windows.Threading namespace. If you need that class we can implement it, could you please add a request in our bugtracker?

Re: Support of System.Threading Class

Posted: 02 Aug 2022, 18:02
by colin14321
Great thank you so much! I have added a request into the bugtracker. (#2391)

Re: Support of System.Threading Class

Posted: 22 Feb 2024, 14:32
by voula_d
Hi,
are there any news on this? If it has not yet implemented on v3.2.3, is there a workaround for Android?
Thanks

Re: Support of System.Threading Class

Posted: 26 Feb 2024, 16:55
by sfernandez
Hi, unfortunately this feature is still not implemented in 3.2.3 version.

Our View exposes a way to create timers though, so you can always create like this:
int timerId = element.View.CreateTimer(intervalMs, OnTimerCallback);
Could that work for you?