Returns true if function is a callback. Checks its name is one of [common-callback-names][] - callback, cb, cb_, callback_, next, done, they can be customized, these are default.
Run an array of functions in parallel
Get separately non-callback arguments in `.arguments` and the last argument if it [is-callback-function][] in `.callback`. It also works like [sliced][], but returns object with `.arguments` and `.callback` properties.
Make a callback- or promise-based function support both promises and callbacks.
Write files in an atomic fashion w/configurable ownership
React hook which returns the latest callback without changing the reference
Unix datagram socket
Memoize functions results using an lru-cache.
Utilities for watching file trees.
construct pipes of streams of events
Returns a promise from a node-style callback function.
Fast, in memory work queue
Promisify a callback-based function
Runs a list of async tasks, passing the results of each into the next one
utilities for primitive JavaScript types
Patch console methods to intercept output
Library to help write libraries that accept both promises and callbacks.
High-priority task queue for Node.js and browsers
No description provided.
The same useRef, but with callback
Compare items in two sequences to find a longest common subsequence
Traverse JSON Schema passing each schema object to callback
easily make yummy noms for other streams
Let your JS API users either give you a callback or receive a promise
Make callbacks easily and build blocks with ease! BlockBuilder is intended to be used with more heavy weight method calls that might require intermediate callbacks. It's almost like creating classes on the fly!
Includes a couple of core functions such as callbacks, timestamping, typecasting and lots of generic validation routines.
Simple soft delete in ActiveRecord models
The Win32::API library is meant as a replacement for the Win32API library that ships as part of the standard library. It contains several advantages over Win32API, including callback support, raw function pointers, an additional string type, and more.
Adds before_validation callback, which applies necessary function to attributes. There are some derivatives: squish_before_validation_for, downcase_before_validation_for, upcase_before_validation_for.
Net::YAIL is an IRC library written in pure Ruby. Using simple functions, it is trivial to build a complex, event-driven IRC application, such as a bot or even a full command-line client. All events can have a single callback and any number of before-callback and after-callback filters. Even outgoing events, such as when you join a channel or send a message, can have filters for stats gathering, text filtering, etc.
Enumify lets you add an enum command to ActiveRecord models There are four things that the enumify gems adds to your model Validation - The enumify adds a validation to make sure that the field only receives accepted values Super Cool Methods - adds ? and ! functions for each enum value (canceled? - is it canceled, canceled! - change the state to canceled) Callback support - you can add a x_callback method which will be called each time the status changes Scopes - you can easily query for values of the enum
When using a read-only file-system, it makes sense to upload assests directly to cloud storage. This gem makes it easy to upload directly to an S3 bucket using the Plupload JS Library. Callback functions can be triggered to run once files have finished uploading so that they can be processed by your application.
The Win32::API library is meant as a replacement for the Win32API library that ships as part of the standard library. It contains several advantages over Win32API, including callback support, raw function pointers, an additional string type, and more.
The "monopay-ruby" gem simplifies Monobank payment integration in Ruby and Rails applications. It provides an intuitive interface and essential functionalities for generating payment requests, verifying transactions, handling callbacks, and ensuring data integrity. With this gem, you can quickly and securely implement Monobank payments, saving development time and delivering a seamless payment experience to your users.
Em-resque is a version of Resque, which offers non-blocking and non-forking workers. The idea is to have fast as possible workers for tasks with lots of IO like pinging third party servers or hitting the database. The async worker is using fibers through Synchrony library to reduce the amount of callback functions. There's one fiber for worker and if one of the workers is blocking, it will block all the workers at the same time. The idea to use this version and not the regular Resque is to reduce the amount of SQL connections for high-load services. Using one process for many workers gives a better control to the amount of SQL connections. For using Resque please refer the original project. https://github.com/defunkt/resque/ The library adds two rake tasks over Resque: * resque:work_async for working inside the EventMachine
GRNexus is a revolutionary cross-language AI platform that combines the elegance of Ruby with the raw power of native C acceleration. Train models in Ruby and deploy them in Python (or vice versa) with full compatibility. Features include 35+ activation functions, 12+ layer types, complete NLP pipeline, 40+ numeric operations, and intelligent training callbacks. 10-100x faster than pure Ruby implementations thanks to native C core.