1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00
youki/docs
Eric Fang c3559e4a0a
refactored executor and executor manager (#2186)
* refactored executor and executor manager

Refactored the executor and executor manager to be clone-able and more
ergonomics.

Removed the use of executor manager with a vector of executor. Instead
we favor composing executors into a new executor. Composing also allows
the implementer to be precise about the execution orders. The old
executor manager with its vector implementation is not explicit enough
about the order when multiple executor is involved.

Re-implement the executor to be a function pointer instead of the Fn
family traits. Traits will type erase and difficult to deal with when
implementing clone.

Refactored the wasm related exectors to use the new scheme.

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Add comments and address the reviews

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Add a section in executor

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-21 21:12:21 +09:00
..
archive New logo! 2023-04-06 13:06:31 +00:00
src refactored executor and executor manager (#2186) 2023-07-21 21:12:21 +09:00
.drawio.svg
.gitignore
book.toml
demo.gif
doc-draft.md Using typos-cli to catch typos + fixes for existing typos (#2018) 2023-06-08 10:19:17 +05:30
youki.png New logo! 2023-04-06 13:06:31 +00:00