Flask is a single thread web server. But I want to make it won\'t block when handle some time consuming request.
For example:
from flask import Flask imp
I believe you are asking about something called "streaming". For Flask this can be accomplished using generator functions and the yield keyword.
yield
Streaming is covered in more detail in the official Flask documentation, have a look here.