Closed sschuberth closed 4 months ago
The example is correct, you need to import the extension.
import com.github.ajalt.mordant.animation.progress.addTask
Thanks, that works. Just curious, what's the design decision to make this an extension function instead of providing context = Unit
by default?
You can't provide a default for a generic type.
At https://ajalt.github.io/mordant/progress/#multiple-progress-bars the example calls
which does not pass any
context
. I guess it should becontext = Unit
in that case? Would it make sense to havecontext = Unit
as a default argument foraddTask()
?