1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/cli/js
Bartek Iwańczuk 79b3bc05d6
workers: basic event loop (#3828)
* establish basic event loop for workers
* make "self.close()" inside worker
* remove "runWorkerMessageLoop() - instead manually call global function 
  in Rust when message arrives. This is done in preparation for structured clone
* refactor "WorkerChannel" and use distinct structs for internal 
  and external channels;  "WorkerChannelsInternal" and "WorkerHandle"
* move "State.worker_channels_internal" to "Worker.internal_channels"
* add "WorkerEvent" enum for child->host communication; 
  currently "Message(Buf)" and  "Error(ErrBox)" variants are supported
* add tests for nested workers
* add tests for worker throwing error on startup
2020-02-11 10:04:59 +01:00
..
mixins change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
streams refactor: reduce number of ErrorKind variants (#3662) 2020-01-20 10:50:16 -05:00
base64.ts Merge deno_cli_snapshots into deno_cli (#3064) 2019-10-04 20:28:51 -04:00
blob.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
blob_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
body.ts Turn on TS strict mode for deno_typescript (#3330) 2019-11-14 15:05:36 -05:00
body_test.ts Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
buffer.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
buffer_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
build.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
build_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
chmod.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
chmod_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
chown.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
chown_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
colors.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
compiler.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
compiler_api.ts Improve support for diagnostics from runtime compiler APIs (#3911) 2020-02-07 01:54:05 -05:00
compiler_api_test.ts Improve support for diagnostics from runtime compiler APIs (#3911) 2020-02-07 01:54:05 -05:00
compiler_bootstrap.ts workers: proper TS libs, more spec-compliant APIs (#3812) 2020-01-29 18:54:23 +01:00
compiler_bundler.ts refactor: isomorphic snapshot for CLI (#3728) 2020-01-27 21:12:25 -05:00
compiler_host.ts workers: proper TS libs, more spec-compliant APIs (#3812) 2020-01-29 18:54:23 +01:00
compiler_imports.ts change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
compiler_sourcefile.ts Improve support for diagnostics from runtime compiler APIs (#3911) 2020-02-07 01:54:05 -05:00
compiler_type_directives.ts Runtime Compiler API (#3442) 2020-01-08 09:17:44 -05:00
compiler_util.ts Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
console.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
console_table.ts Update to TypeScript 3.7 (#3275) 2019-11-13 13:42:34 -05:00
console_test.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
copy_file.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
copy_file_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
core.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
custom_event.ts Add missing year ranges to copyright notices (#3582) 2020-01-02 18:41:59 -05:00
custom_event_test.ts Add missing year ranges to copyright notices (#3582) 2020-01-02 18:41:59 -05:00
decode_utf8.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
deno.ts Improve support for diagnostics from runtime compiler APIs (#3911) 2020-02-07 01:54:05 -05:00
diagnostics.ts Runtime Compiler API (#3442) 2020-01-08 09:17:44 -05:00
diagnostics_util.ts change copyrights from 2019 to 2020 (#3733) 2020-01-21 10:01:55 -05:00
dir.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
dir_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
dispatch.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
dispatch_json.ts Reland "Create an old program to be used in snapshot." (#3747) 2020-01-22 20:18:01 +01:00
dispatch_json_test.ts Update to TypeScript 3.7 (#3275) 2019-11-13 13:42:34 -05:00
dispatch_minimal.ts feat: support individual async handler for each op (#3690) 2020-01-17 08:26:11 -05:00
dispatch_minimal_test.ts fix: Validate all tests included in unit_tests.ts (#3879) 2020-02-05 09:23:23 +01:00
dom_file.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
dom_types.ts Make fetch API more standards compliant (#3667) 2020-02-03 15:54:47 +01:00
dom_util.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
encode_utf8.ts perf: TextEncoder.encode improvement (#3596) 2020-01-04 17:00:03 -05:00
error_stack.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
error_stack_test.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
errors.ts refactor: reduce number of ErrorKind variants (#3662) 2020-01-20 10:50:16 -05:00
event.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
event_target.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
event_target_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
event_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
fetch.ts Make fetch API more standards compliant (#3667) 2020-02-03 15:54:47 +01:00
fetch_test.ts Make fetch API more standards compliant (#3667) 2020-02-03 15:54:47 +01:00
file_info.ts feat(fs): add more unix-only fields to FileInfo (#3680) 2020-01-16 09:46:32 -05:00
file_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
files.ts Implemented alternative open mode in files (#3119) 2020-01-21 10:49:42 +01:00
files_test.ts Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
form_data.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
form_data_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
format_error.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
get_random_values.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
get_random_values_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
globals.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
globals_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
headers.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
headers_test.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
internals.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
internals_test.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
io.ts toAsyncIterable: Remove unnecessary EOF check (#3914) 2020-02-07 18:51:01 -05:00
lib.deno.ns.d.ts Improve support for diagnostics from runtime compiler APIs (#3911) 2020-02-07 01:54:05 -05:00
lib.deno.shared_globals.d.ts Make fetch API more standards compliant (#3667) 2020-02-03 15:54:47 +01:00
lib.deno.window.d.ts workers: proper TS libs, more spec-compliant APIs (#3812) 2020-01-29 18:54:23 +01:00
lib.deno.worker.d.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
link.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
link_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
location.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
location_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
main.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
make_temp_dir.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
make_temp_dir_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
metrics.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
metrics_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
mkdir.ts fix: Deno.mkdir should conform to style guide (#3617) 2020-01-07 14:14:33 -05:00
mkdir_test.ts fix: Deno.mkdir should conform to style guide (#3617) 2020-01-07 14:14:33 -05:00
mock_builtin.js Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
net.ts stabilize net Addr (#3709) 2020-01-18 21:49:55 +01:00
net_test.ts update readmes (#3765) 2020-01-23 22:32:52 +01:00
os.ts refactor: isomorphic snapshot for CLI (#3728) 2020-01-27 21:12:25 -05:00
os_test.ts Replace libdeno with rusty_v8 (#3556) 2020-01-05 09:19:29 -05:00
performance.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
performance_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
permissions.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
permissions_test.ts refactor: reduce number of ErrorKind variants (#3662) 2020-01-20 10:50:16 -05:00
plugins.ts feat: support individual async handler for each op (#3690) 2020-01-17 08:26:11 -05:00
process.ts Add signal handlers (#3757) 2020-01-24 08:15:31 -05:00
process_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
rbtree.ts cli: replace timer map with red-black tree (#3218) 2019-10-31 17:11:58 -07:00
read_dir.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
read_dir_test.ts Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
read_file.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
read_file_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
read_link.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
read_link_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
realpath.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
realpath_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
remove.ts fix: Deno.remove() to properly remove dangling symlinks (#3860) 2020-02-03 08:20:15 -05:00
remove_test.ts fix: Deno.remove() to properly remove dangling symlinks (#3860) 2020-02-03 08:20:15 -05:00
rename.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
rename_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
repl.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
request.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
request_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
resources.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
resources_test.ts Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
runtime.ts refactor: CLI subcommands and argv (#3886) 2020-02-04 20:24:33 +01:00
runtime_main.ts refactor: CLI subcommands and argv (#3886) 2020-02-04 20:24:33 +01:00
runtime_worker.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
signal_test.ts Add signal handlers (#3757) 2020-01-24 08:15:31 -05:00
signals.ts feat: add std/signal/mod.ts (#3913) 2020-02-07 01:53:15 -05:00
stat.ts feat(fs): add more unix-only fields to FileInfo (#3680) 2020-01-16 09:46:32 -05:00
stat_test.ts Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
symbols.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
symbols_test.ts Add Deno.symbols and move internal fields for test (#3693) 2020-01-16 19:42:58 -05:00
symlink.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
symlink_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
test_util.ts fix: Validate all tests included in unit_tests.ts (#3879) 2020-02-05 09:23:23 +01:00
text_encoding.ts perf: TextEncoder.encode improvement (#3596) 2020-01-04 17:00:03 -05:00
text_encoding_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
timers.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
timers_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
tls.ts stabilize net Addr (#3709) 2020-01-18 21:49:55 +01:00
tls_test.ts rename dial to connect and dialTLS to connectTLS (#3710) 2020-01-18 18:35:12 +01:00
truncate.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
truncate_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
ts_global.d.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
types.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
unit_test_runner.ts Runtime Compiler API (#3442) 2020-01-08 09:17:44 -05:00
unit_tests.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
url.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
url_search_params.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
url_search_params_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
url_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
util.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
utime.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
utime_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
version.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
version_test.ts Merge deno_cli_snapshots into deno_cli (#3064) 2019-10-04 20:28:51 -04:00
workers.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
workers_test.ts workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
write_file.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
write_file_test.ts Happy new year! (#3578) 2020-01-02 15:13:47 -05:00