Arduino Uno WiFi R2 - Multithreads

The Uno WiFi uses a completely different processor (ATMEGA4809) than the old Uno (ATMega328).

Perhaps this would be of interest?