schedule icon indicating copy to clipboard operation
schedule copied to clipboard

Add demo to documentation

Open JasPanesar opened this issue 10 years ago • 1 comments

If there's a quick way to contribute this I'm happy to do so, it would be great to have a working demo right on the documentation site.

JasPanesar avatar Nov 13 '14 22:11 JasPanesar

I'd like to use this to schedule and unschedule something every 10 minutes, but I did not find it in doc. So.. I suggest you to add a real example in the docs.

const Scheduler = () => {

    // returns true if there’s room to schedule at ‘time’
    const couldScheduleAt = (time) => {}

    // returns true if we successfully scheduled
    const scheduleAt = (time) => {}

    // Choose an available time to schedule at, and return that time
    const schedule = () => {}

    // returns true if we successfully unscheduled something
    const unScheduleAt = (time) => {}
}

francisrod01 avatar Mar 26 '18 16:03 francisrod01