# indication

> indication makes handling

Latest version **0.1.1** (published 2018-03-30) · MIT* license · 0 weekly downloads

## Install

```sh
npm install indication
pnpm add indication
yarn add indication
bun add indication
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-03-30 |
| First published | 2018-03-30 |
| Weekly downloads | 0 |
| License | MIT* |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | ksylvest |

## Links

- npm: https://www.npmjs.com/package/indication
- npm.io page: https://npm.io/package/indication

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.18.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.5

## Recent versions

- 0.1.1 (latest) — 2018-03-30

## README

# indication

indication makes handling

## Installation
Add this line to your application's Gemfile:

```ruby
gem 'indication'
```

And then execute:
```bash
$ bundle
```

Or install it yourself as:
```bash
$ gem install indication
```

## Configuration

```ruby
indication.config do |config|
  config.default_polling_interval = 5.seconds
end
```

## Usage

```ruby
class SearchJob < ApplicationJob
  include Indication::Resolutions

  # Usage:
  #
  def perform(from, to, date, promise = Indication::Promise.new)
    searches = Airlines.all.map do |airline|
      AirlineSearchJob.new(airline, from, to, date, token)
    end
    indication.await(promises)
  end
end
```

```ruby
class AirlineSearchJob < ApplicationJob
  include Indication::Resolutions

  def perform(airline, from, to, date, promise = Indication::Promise.new)
    begin
      flights = airline.search(from, to, date, token)
      resolved(token, )
    rescue Airline::SearchError => error
      rejected(token, error.message)
    end
  end
end
```

```javascript
import axios from 'axios'
import indication from 'indication';

const indication = new indication();
axios.post('/search', { from: 'SFO', to: 'LAX', date: '2018-12-31', token: indication.token });

try {
  const data = await indication;
  console.log('resolved', data);
} catch (error) {
  console.log('rejected', error);
}
```

## Contributing
Contribution directions go here.

## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/indication · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
