Added whenDone method / wait for async resources