MCPcopy Create free account
hub / github.com/coopernurse/node-pool / fbind

Function fbind

lib/ResourceRequest.js:6–10  ·  view source on GitHub ↗
(fn, ctx)

Source from the content-addressed store, hash-verified

4const errors = require("./errors");
5
6function fbind(fn, ctx) {
7 return function bound() {
8 return fn.apply(ctx, arguments);
9 };
10}
11
12/**
13 * Wraps a users request for a resource

Callers 1

setTimeoutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected