basic layout for the async event generator
functinal async generator demo