typesystem icon indicating copy to clipboard operation
typesystem copied to clipboard

Async support

Open lovelydinosaur opened this issue 7 years ago • 1 comments

Database validation needs an async/await interface. ValidationResult should be an awaitable, and should error if __bool__ or __iter__ are called, and it has awaitable validators, and has not yet been awaited.

lovelydinosaur avatar Feb 28 '19 11:02 lovelydinosaur

We'll keep the async/await parts optional, and seperate from the main value validation, so that it's super clear inside validation if and where database access might occur.

lovelydinosaur avatar Feb 28 '19 11:02 lovelydinosaur