import { InertApp } from "@scramjet/types" ; param _stream param count export = async function ( ) { await new Promise < void > ( resolve => { this . on ( "test-event" , async ( ) => { await new Promise ( res => setTimeout ( res , 3000 ) ) ; this . emit ( "test-event-response" , "message from sequence" ) ; await new Promise ( res => setTimeout ( res , 1000 ) ) ; resolve ( ) ; } ) ; } ) ; } as InertApp ;