mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
docs: documented bind Enviroment
This commit is contained in:
@@ -200,6 +200,9 @@ const bindEnvironmentFibers = (func, onException, _this) => {
|
||||
};
|
||||
};
|
||||
|
||||
// This function has two reasons:
|
||||
// 1. Return the function to be executed on the MeteorJS context, having it assinged in the async localstorage.
|
||||
// 2. Better error handling, the error message will be more clear.
|
||||
const bindEnvironmentAsync = (func, onException, _this) => {
|
||||
var dynamics = Meteor._getValueFromAslStore("_meteor_dynamics");
|
||||
var boundValues = Array.isArray(dynamics) ? dynamics.slice() : [];
|
||||
|
||||
Reference in New Issue
Block a user