Commit Graph

230 Commits

Author SHA1 Message Date
Jan Müller 0f90bb8b90
Add JS targets for Kotlin Multiplatform (#36) 2020-11-29 21:34:08 +00:00
Thomas Stenberg Oddsund 0fdd0f2c2b Add recoverIf and recoverUnless
These are similar to [toErrorIf] and [toErrorUnless], but maps from Err to Ok.
2020-11-28 22:50:52 +00:00
Tristan H c8372a0522
Eagerly cancel async bindings (#37)
Make suspendible binding function eagerly cancel child jobs by cancelling wrapping scope
2020-11-28 22:50:10 +00:00
Michael Bull 3c5b432b55 Update unit test section in README 2020-09-26 16:53:07 +01:00
Gregory Inouye 3d40c70708 fix links 2020-09-18 10:12:01 +01:00
Michael Bull f9408c0a73 Add jvanderwee to contributors
See: 31965ceb3d
2020-08-30 22:51:03 +01:00
Michael Bull 93d2c1ab56 Bump version 2020-08-29 15:52:07 +01:00
Michael Bull 5acd8afb97 Release v1.1.9 2020-08-29 12:24:42 +01:00
Michael Bull a3709fc25a Remove release plugin
It doesn't work with multi-module projects properly.
2020-08-29 12:19:54 +01:00
Michael Bull a0d17c6b76 Remove erroneous sample comment
Dokka can't see this sample because we don't ship test sources.
2020-08-29 12:06:22 +01:00
Michael Bull 9a75942238 Update version number in README 2020-08-29 11:59:24 +01:00
Tristan Hamilton a9a0c384f4 Use Explicit API mode
See: https://kotlinlang.org/docs/reference/whatsnew14.html#explicit-api-mode-for-library-authors
2020-08-29 11:40:48 +01:00
Tristan Hamilton 620f434220 Remove unused dependencies 2020-08-29 11:35:03 +01:00
Michael Bull 7805842eae Fix typo in example application 2020-08-27 13:44:56 +01:00
Michael Bull 33d376c4c8 Improve merge unit tests 2020-08-26 22:30:59 +01:00
Michael Bull 67c1cd33ad Rewrite example application 2020-08-26 22:02:22 +01:00
Michael Bull 41269f06d3 Extract dependency versions to Versions object in buildSrc 2020-08-26 19:52:18 +01:00
Michael Bull a662ebc0a7 Update dependencies 2020-08-26 19:42:18 +01:00
Michael Bull 30d2778d00 Update Gradle to 6.6.1 2020-08-26 19:34:35 +01:00
Michael Bull b123921ba5 Make runBlockingTest match signature of kotlinx-coroutines-test 2020-08-26 19:26:02 +01:00
Michael Bull a76768fa42 Remove deprecation of eager-evaluating functions
They are fine to be used, and their lazy equivalents already have analogous
methods that can be used instead.
2020-08-26 19:16:44 +01:00
Michael Bull 4206f8b905 Fix suppressed warnings in unit tests 2020-08-26 19:11:13 +01:00
Michael Bull 09d341ae6d Add Scala's merge
https://www.scala-lang.org/api/2.12.0/scala/util/Either$$MergeableEither.html#merge:A
2020-08-26 17:22:55 +01:00
Michael Bull 30b5d918c7 Fix missing project descriptions in pom files 2020-08-26 16:50:36 +01:00
Tristan Hamilton b16fb559a1 Move binding coroutine implementation to separate subproject 2020-08-25 22:29:50 +01:00
Michael Bull ce0180f5cd Fix links in README
The move to a mpp structure broke these links.
2020-07-23 11:19:02 +01:00
Michael Bull 217e6d120e [Gradle Release Plugin] - new version commit: '1.1.9-SNAPSHOT'. 2020-07-19 11:11:17 +01:00
Michael Bull ac773cc175 [Gradle Release Plugin] - pre tag commit: '1.1.8'. 2020-07-19 11:11:02 +01:00
Michael Bull 55610e207c Update version in README 2020-07-19 11:06:54 +01:00
Tristan Hamilton bd7e1244b3 Add suspend variant of binding function
Closes #24
2020-07-19 11:00:43 +01:00
Tristan Hamilton a40dcdf688 Move zip tests to common test directory 2020-07-19 10:51:30 +01:00
Michael Bull b95b1c7dee
Fix typo in README 2020-07-10 20:23:18 +01:00
Michael Bull a48822787e [Gradle Release Plugin] - new version commit: '1.1.8-SNAPSHOT'. 2020-06-28 12:13:53 +01:00
Michael Bull 8168388352 [Gradle Release Plugin] - pre tag commit: '1.1.7'. 2020-06-28 12:13:39 +01:00
Tristan Hamilton bca344daaf Convert to multi-platform project structure
Closes #12
2020-06-28 12:06:16 +01:00
Michael Bull f8ce59b3fb
Merge pull request #20 from jvanderwee/task/zip_tests
Add tests for zip functions
2020-06-10 14:06:08 +01:00
Joseph Van der Wee 31965ceb3d
Added zip tests 2020-06-06 16:17:54 +01:00
Michael Bull 32ccaeea16
Merge pull request #19 from Munzey/kotlinNativeFix
Make BindingTest agnostic of target platform
2020-06-05 17:45:41 +01:00
Tristan Hamilton 843b1eccd7 Make BindingTest agnostic of target platform by using kotlin test instead of junit test annotation 2020-06-05 17:43:05 +01:00
Michael Bull 3651b2427f Update version in README 2020-06-04 19:14:44 +01:00
Michael Bull b4b2224ed2 Update dependencies 2020-06-04 19:11:51 +01:00
Tristan Hamilton 7a3e381934 Add binding section to README 2020-06-04 18:16:38 +01:00
Michael Bull ff8753321d Add compiler contracts to binding function 2020-05-11 12:48:41 +01:00
Michael Bull 534815400c Improve var name consistency in BindingBenchmark 2020-05-11 12:01:32 +01:00
Michael Bull 4b745d8717 Merge {AndThen,Binding}Benchmarks
jmh-visualiser displays them comparatively when they are in the same class.
2020-05-11 11:54:50 +01:00
Tristan Hamilton 0910e9ffe4 Add benchmarking framework 2020-05-11 11:28:51 +01:00
Michael Bull fa8f58c0da Add Tristan Hamilton to contributors 2020-05-11 10:41:00 +01:00
Tristan Hamilton 9bcaa974ca Add monad comprehensions via binding block 2020-05-11 10:34:55 +01:00
Michael Bull 1000c588c0 Add Result#toErrorUnless
Gives us symmetry with the kotlin stdlib:

- https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/take-if.html
- https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/take-unless.html
2020-04-18 11:48:45 +01:00
Michael Bull 22898fff4f Add compiler contract to Result#toErrorIf 2020-04-18 11:43:31 +01:00