The BudgetService interface of the Web Budget API provides a interface to the user agent’s budget service. It is available both document and worker environments.
The BudgetService interface of the Web Budget API provides a interface to the user agent’s budget service. It is available both document and worker environments.
(get-budget this & args)Method.
[Experimental]
The getBudget() property of the web.budget.BudgetService interface
a js.Promise that resolves to an array of BudgetState objects
the expected state of the budget at times in the future.
var aPromise = BudgetService.getBudget(); aPromise.then(function(budgetState[]){ ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/BudgetService/getBudget
Method.
[Experimental]
The getBudget() property of the `web.budget.BudgetService` interface
a `js.Promise` that resolves to an array of BudgetState objects
the expected state of the budget at times in the future.
`var aPromise = BudgetService.getBudget();
aPromise.then(function(budgetState[]){ ... });`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetService/getBudget`(get-cost this & args)Method.
[Experimental]
The getCost() property of the web.budget.BudgetService interface
a js.Promise that resolves to a double indicating the worst-case
operation cost of the provided background operation.
var aPromise = BudgetService.getCost(operation); aPromise.then(function(someDouble){ ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/BudgetService/getCost
Method.
[Experimental]
The getCost() property of the `web.budget.BudgetService` interface
a `js.Promise` that resolves to a double indicating the worst-case
operation cost of the provided background operation.
`var aPromise = BudgetService.getCost(operation);
aPromise.then(function(someDouble){ ... });`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetService/getCost`(reserve this & args)Method.
[Experimental]
The reserve() property of the web.budget.BudgetService interface
a js.Promise that resolves to a boolean indicating whether
requested budget operation can be reserved.
var aPromise = BudgetService.reserve(operation); aPromise.then(function(boolean){ ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/BudgetService/reserve
Method.
[Experimental]
The reserve() property of the `web.budget.BudgetService` interface
a `js.Promise` that resolves to a boolean indicating whether
requested budget operation can be reserved.
`var aPromise = BudgetService.reserve(operation);
aPromise.then(function(boolean){ ... });`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetService/reserve`cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |