Thread pools on the JVM should usually be divided into the following three categories:
- CPU-bound
- Blocking IO
- Non-blocking IO polling
Each of these categories has a different optimal configuration and usage pattern.
private class MutableStateAdapter<T>( | |
private val state: State<T>, | |
private val mutate: (T) -> Unit | |
) : MutableState<T> { | |
override var value: T | |
get() = state.value | |
set(value) { | |
mutate(value) | |
} |
There are two ways - the first way is just one command run plainly in front of you; the second one runs in the background and in a different instance so you can get out of your ssh session and it will continue.
First make a folder to download the websites to and begin your downloading: (note if downloading www.SOME_WEBSITE.com
, you will get a folder like this: /websitedl/www.SOME_WEBSITE.com/
)