withSubstitutedStreams

fun <T> withSubstitutedStreams(systemStreamFactory: (initial: StreamT?) -> StreamT, kernelStreamFactory: (initial: StreamT?) -> StreamT?, body: () -> T): T