Micro: renaming to align with Effect
module
#3096
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Micro: align with
Effect
module (renamings and new combinators).General naming convention rule:
<reference module (start with lowercase)><api (start with Uppercase)>
.Failure
->MicroCause
Failure.Expected<E>
->MicroCause.Fail<E>
Failure.Unexpected
->MicroCause.Die
Failure.Aborted
->MicroCause.Interrupt
FailureExpected
->causeFail
FailureUnexpected
->causeDie
FailureAborted
->causeInterrupt
failureIsExpected
->causeIsFail
failureIsExpected
->causeIsFail
failureIsUnexpected
->causeIsDie
failureIsAborted
->causeIsInterrupt
failureSquash
->causeSquash
failureWithTrace
->causeWithTrace
Result
->MicroExit
ResultAborted
->exitInterrupt
ResultSuccess
->exitSucceed
ResultFail
->exitFail
ResultFailUnexpected
->exitDie
ResultFailWith
->exitFailCause
resultIsSuccess
->exitIsSuccess
resultIsFailure
->exitIsFailure
resultIsAborted
->exitIsInterrupt
resultIsFailureExpected
->exitIsFail
resultIsFailureUnexpected
->exitIsDie
resultVoid
->exitVoid
DelayFn
->MicroSchedule
delayExponential
->scheduleExponential
delaySpaced
->scheduleSpaced
delayWithMax
->scheduleWithMaxDelay
delayWithMaxElapsed
->scheduleWithMaxElapsed
delayWithRecurs
->scheduleRecurs
and make it a constructoraddDelay
combinatorHandle
abort
->interrupt
unsafeAbort
->unsafeInterrupt
provideServiceMicro
->provideServiceEffect
fromResult
->fromExit
fromResultSync
->fromExitSync
failWith
->failCause
failWithSync
->failCauseSync
asResult
->exit
filterOrFailWith
->filterOrFailCause
repeatResult
->repeatExit
catchFailure
->catchAllCause
catchFailureIf
->catchCauseIf
catchExpected
->catchAll
catchUnexpected
->catchAllDefect
tapFailure
->tapErrorCause
tapFailureIf
->tapErrorCauseIf
tapExpected
->tapError
tapUnexpected
->tapDefect
mapFailure
->mapErrorCause
matchFailureMicro
->matchCauseEffect
matchFailure
->matchCause
matchMicro
->matchEffect
onResult
->onExit
onResultIf
->onExitIf
onFailure
->onError
onAbort
->onInterrupt
abort
->interrupt
runPromiseResult
->runPromiseExit
runSyncResult
->runSyncExit
delay
option toschedule