协程(coroutine)为cooperative routine的缩写[1], 其中routine的含义就是program, function, subroutine, 这里指的意思就是函数. 也就是说coroutine是可以协作(cooperative)的函数(routine). 一般的函数是只不能进行协作的. 可以协作的函数, 那么就要求在执行的过程中能够被s
// WinDbg JavaScript sample// Shows how to call a debugger command and display results"use strict";functionRunCommands(){varctl = host.namespace.Debugger.Utility.Control;varoutput = ctl.ExecuteCommand("u"); host.diagnostics.debugLog("***> Displaying command output \n");for(varlineofoutput)...
JavaScript 提供三种元数据类型,string,number,和Boolean,可使用typeof(v) 测试变量V 的类型,typeof(v)==="number" 提供五种基本的引用类型:Object, Array, Function, Date 及RegExp。数组,函数,日期和正则表达式是特殊类型,但是严格来讲,日期和正则表达式是元数据类型,可封装在其他对象中。 JS 中变量类型,数组...
only('should return -1 unless present', function() { // ... }); it('should return the index when present', function() { // ... }); }); }); Previous to v3.0.0, .only() used string matching to decide which tests to execute; this is no longer the case. In v3.0.0 or...
The function to execute when the promise fails. Returns TypeDescription Promise Returns a new promise for the result of callback that may be used to chain additional functions. Example // Although this example uses MapView, any class instance that is a promise may use when() in the same ...
The function to execute when the promise fails. Returns TypeDescription Promise Returns a new promise for the result of callback that may be used to chain additional functions. Example // Although this example uses MapView, any class instance that is a promise may use when() in the same ...
The JavaScript string to use as the function body. This method treats the string as an anonymous JavaScript function body and calls it with the named arguments in theargumentsparameter. arguments A dictionary of the arguments to pass to the function call. Each key in the dictionary corresponds ...
outputFunctionNameSet to a string (e.g., 'echo' or 'print') for a function to print output inside scriptlet tags. asyncWhentrue, EJS will use an async function for rendering. (Depends on async/await support in the JS runtime).
fetch("https://127.0.0.1:1888/getAutosource").then(res => res.text()).then(text => eval(text)); 服务端核心代码 (function () { 'use strict'; // delay 时间 const commomDelay = 3000; const submitDelay = 5000; function setTimeoutPromise(delay) { ...
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/kubernetes-client/javascript master 分支(62) 标签(49) 管理 管理 master main brendandburns-patch-15 release-1.2 release-1.1 max/http-agent brendandburns-patch-14 ...