Question: I am in the situation, where I want to provide a link (obtained via Share option) to view all the project (i.e. folder structure with files inside). This is working without any problem. Now, I want to also provide a link to edit the particular subfolder. Again, I got link and through it I can edit files inside the subfolder. But the problem is that if I use 1st link (the view one) I am able to edit the subfolder even though I do not have permissions to do that (I suppose permissions are given by the 2nd link).

---

root folder (view link)

* subfolder 1 (edit link; can edit with the view link)
	+ file 1
	+ file 2
* subfolder 2
	+ file 3
	+ file 4

---

Is it a feature or I am doing something wrong?

Thank you,
Jirka

Answer: 
Before RxJs 6:

`Observable.timer(0, 1000)` will start immediately.

RxJs 6+

```
import {timer} from 'rxjs/observable/timer';
timer(0, 1000).subscribe(() => { ... });

```
With RxJava2, there's no issue with duplicated first entry and this code is working fine:

```
io.reactivex.Observable.interval(1, TimeUnit.SECONDS)
        .startWith(0L)
        .subscribe(aLong -> {
            Log.d(TAG, "test");    // do whatever you want
    });

```

Note you need to pass `Long` in startWith, so `0L`.