Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

feat(tests): async tests #44

Merged
merged 1 commit into from Jul 19, 2013
Merged

Conversation

jbdeboer
Copy link
Contributor

Introduces the async() API for tests and updates http_spec.dart to use it as an example.


async(Function fn) =>
() {
dartAsync.runZonedExperimental(fn, onRunAsync: (fn) => _asyncQueue.add(fn));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename the arg name 'fn' in onRunAsync to, for example, asyncCallback, just to make it different from the other fn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@pavelgj
Copy link
Contributor

pavelgj commented Jul 18, 2013

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants