import { begin , end } from '@ember/runloop' ; param { object } hooks export default function inRunloop ( hooks ) { hooks . beforeEach ( function ( ) { begin ( ) ; } ) ; hooks . afterEach ( function ( ) { end ( ) ; } ) ; } /**
 * Ends the current RunLoop and starts a new one
 */ export function next ( ) { end ( ) ; begin ( ) ; }