You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't been able to find a way to mimic the below using promises. Can someone help me out if its even possible?
traverson
.from(rootUrl)
.follow('link1', 'link2')
.getResource(function(err, firstResource, traversal) {
if (err) { return done(err); }
// do something with the first resource, maybe decide where to go from here.
traversal
.continue()
.follow('link3', 'link3')
.getResource(function(err, secondResource) {
if (err) { return done(err); }
// do something with the second resource
});
});
The text was updated successfully, but these errors were encountered:
@SinBle Sorry for the late reply, I had some life changes recently. It's definitely possible to use continue, just need to add resultWithTraversal() before the promise resolve:
I haven't been able to find a way to mimic the below using promises. Can someone help me out if its even possible?
The text was updated successfully, but these errors were encountered: