Function ast_grep_napi::js::parse_async
source · pub fn parse_async(src: String) -> AsyncTask<ParseAsync>
Expand description
Parse a string to an ast-grep instance asynchronously in threads. It utilize multiple CPU cores when concurrent processing sources. However, spawning excessive many threads may backfire. Please refer to libuv doc, nodejs’ underlying runtime for its default behavior and performance tuning tricks.