arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.26k stars 230 forks source link

Doesnt work if use function => while (Client.connected()) #59

Closed adamrabbani closed 6 years ago

adamrabbani commented 6 years ago

i use this function => while (Client.connected()) for client-server communication.. when esp run the function.. other function delayed until client connected to the server

GitMoDu commented 6 years ago

A cooperative Sheduler will not yield execution if you don't exit it. You're thinking about a preemptive scheduler, like FreeRTOS.

adamrabbani commented 6 years ago

Oh, Thanks!