Sha256: e6f65aa0034d925778e0efef7d7290a666068da08a7040c29500bf18959cecf4

Contents?: true

Size: 802 Bytes

Versions: 1

Compression:

Stored size: 802 Bytes

Contents

# GbDispatch

Library allows easy to dispatch block of code for queues.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'gb_dispatch'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install gb_dispatch

## Usage

To dispatch asynchronously

```ruby
GBDispatch.dispatch_async_on_queue :my_queue do
    puts 'my code here'
end
```

for synchronous execution

```ruby
GBDispatch.dispatch_sync_on_queue :my_queue do
    puts 'my code here'
end
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/gb_dispatch/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gb_dispatch-0.0.1 README.md