question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove magic `this` from tasks

See original GitHub issue

Tasks will lose access to this during definition.

What used to be:

exports.default = function * (opts) {
  yield this.source(opts.src || 'src/**')...
}

Now looks like this:

exports.default = function * (fly, opts) {
  yield fly.source(opts.src || 'src/**')...
}

Note: The opts param is conditionally populated in both cases. This is already an implemented behavior.

Need Feedback

For 2.0, I think users should still have access to this but it will not be documented or encouraged.

Then in 3.0, the binding to this will be removed entirely.


cc: @jbucaran @rauchg

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
devmondocommented, Jan 12, 2017

Awesome!!!

1reaction
rauchgcommented, Jan 11, 2017

This is fantastic

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tasks - Fandom - Black Magic II Wiki
Tasks are a checklist of randomized achievements that reward the player ... Before removal, the player would be assigned 4 random Weekly Tasks...
Read more >
Remove magic-i.exe - how to permanently delete the file from ...
In Task Manager windows, click "Processes" pane. Than select magic-i.exe and press "Delete" key). Detailed guide. Clean your computer on a regular basis....
Read more >
Editing a Task - RootsMagic Wiki
To edit a task: Select the Tasks page. Select the task you want to edit from the task list.
Read more >
Removing a relationship - MagicDraw 18.5
To remove a relationship from the diagram pane. Select a relationship and click Remove From Diagram (Delete) in the Diagram toolbar.
Read more >
View / Stop the Scheduled Actions / Messages - SMS-Magic
Delete the scheduled tasks which you want to. For Workflow Rule: Go to setup search for “Time-Based Workflow” in the quick find box....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found