Skip to content

〰️ A generic display and progress for things that take time

License

Notifications You must be signed in to change notification settings

lgeiger/atom-busy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Busy (as always!)

An indicator which let's you know some background tasks is currently being run.

busy gif

API

In your package.json

  "consumedServices": {
    "busy": {
      "versions": {
        "^1.0.0": "consumeBusy"
      }
    }
  }

Consume the provided registry

consumeBusy(registry) {
  this.busyRegistry = registry;
}

begin(identifier, text)

Call when a long running task has begun.

this.busyRegistry.begin('packageName.uniqueIdentifier', 'Description of long running task');
  • identifier: A unique identifier, prefixed with your package name to avoid collisions.
  • text: Text describing the long running task. Displayed when hovering the busy-wheel.

end(identifier[, success])

Call to signal that the long running task has ended

this.busyRegistry.end('packageName.uniqueIdentifier')
  • identifier: The identifier of the task specified when calling begin.
  • success: Whether the operation succeeded or not. Default true.

Integrations

Feel free to add your integration to this list

About

〰️ A generic display and progress for things that take time

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.2%
  • CSS 15.8%