Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { task } from 'ember-concurrency';
export default TutorialComponent.extend({
result: null,
findStores: task(function * () {
let geolocation = this.get('geolocation');
let store = this.get('store');
let coords = yield geolocation.getCoords();
let result = yield store.getNearbyStores(coords);
this.set('result', result);
}).drop(), // ++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment