Alexey Andreev
7e6df03421
Fix improper handling of coroutine interceptors
...
Don't use coroutine facade in following cases:
* When calling coroutine functions in non-suspend mode (i.e.
suspend flag is either false or skipped).
* When passing continuation from suspend function to suspend function.
Use facade only for corresponding intrinsics.
Reason: interceptor should not be called on each suspend function
invocation, it should be called after resume from innermost
suspend function.
Fix KT-17067. The example provided with the issue is very similar to
dispatchResume.kt which passes after these changes.
Add test to prove that KT-17446 is no more reproducible.
2017-04-18 11:22:18 +03:00
..
2017-03-10 19:59:37 +03:00
2017-04-13 17:33:15 +03:00
2017-03-10 19:59:37 +03:00
2017-04-18 11:22:18 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-04-18 11:22:18 +03:00
2017-03-10 19:59:37 +03:00
2017-03-28 11:32:45 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-07 10:46:07 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-28 11:32:45 +03:00
2017-04-13 12:56:34 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-04-18 11:22:18 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00
2017-03-10 19:59:37 +03:00