mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
0d03fafbfe
Refactors handlers.rs The idea is that all Deno "ops" (aka bindings) should map onto a Rust Future. By setting the "sync" flag in the Base message users can determine if the future is executed immediately or put on the event loop. In the case of async futures, a promise is automatically created. Errors are automatically forwarded and raised. TODO: - The file system ops in src/handler.rs are not using the thread pool yet. This will be done in the future using tokio_threadpool::blocking. That is, if you try to call them asynchronously, you will get a promise and it will act asynchronous, but currently it will be blocking. - Handlers in src/handler.rs returned boxed futures. This was to make it easy while developing. We should try to remove this allocation. |
||
---|---|---|
.. | ||
testing | ||
assets.ts | ||
compiler.ts | ||
compiler_test.ts | ||
console.ts | ||
console_test.ts | ||
deno.ts | ||
errors.ts | ||
fbs_util.ts | ||
fetch.ts | ||
fetch_test.ts | ||
fetch_types.d.ts | ||
global-eval.ts | ||
globals.ts | ||
libdeno.ts | ||
main.ts | ||
mock_builtin.js | ||
os.ts | ||
os_test.ts | ||
plugins.d.ts | ||
test_util.ts | ||
text_encoding.ts | ||
timers.ts | ||
tsconfig.generated.json | ||
types.ts | ||
unit_tests.ts | ||
util.ts | ||
v8_source_maps.ts |