I've read some sensors/devices take time to return result since they're interacting with environment or some other resource that takes time. One example is DHT-11 temperature sensor that takes ~2seconds to give results.
So what they mean is if we read() from GPIO at that moment, it'll block for ~2 seconds or will it contain garbage value and return immediately till actual result is obtained. I'm trying to mock gpio pins for some testing till I get my raspi and sensors so I'm asking here. Thankyou :)