Open kochounoyume opened 3 weeks ago
As a goal, I want to do what the title says.
For example, the following source code does not work well in practice (because Complete is issued inside ToObservable()), but it may convey the image.
ToObservable()
Any good ideas?
using Cysharp.Threading.Tasks; using R3; using UnityEngine; public sealed class Test : MonoBehaviour { void Start() { string[] array = { "a", "b", "c" }; array .ToObservable() .SubscribeAwait(static async (element, token) => { Debug.Log(element); await UniTask.Yield(token); }, AwaitOperation.Sequential); } }
As a goal, I want to do what the title says.
For example, the following source code does not work well in practice (because Complete is issued inside
ToObservable()
), but it may convey the image.Any good ideas?