Function parse_async

Source
pub fn parse_async(lang: String, src: String) -> Result<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.