Giter Club home page Giter Club logo

busybee's People

Contributors

louiscad avatar sampathkumaramex avatar yogurtearl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

busybee's Issues

Support custom categories.

Right now there is a fixed list of categories (GENERAL, NETWORK, etc), should allow applications to have default categories.

Support Busybee in `/test` in Android modules

Currently Busybee in /test in Android modules fails with:

Caused by: java.lang.RuntimeException: Method getMainLooper in android.os.Looper not mocked. See http://g.co/androidstudio/not-mocked for details.
	at android.os.Looper.getMainLooper(Looper.java)
	at io.americanexpress.busybee.android.internal.AndroidMainThreadExecutor.<init>(AndroidMainThreadExecutor.java:27)
	at io.americanexpress.busybee.android.internal.AndroidMainThreadExecutor.<clinit>(AndroidMainThreadExecutor.java:25)

Update the README now that the library is 100% Kotlin

Quoting the current README:

Why is this written in Java and not Kotlin?

We wanted to get an initial release out that didn't depend on the Kotlin standard library, but we plan on converting the implementation to 100% Kotlin.

add a way to not run the code to create the `operation` when using the no-op impl.

We want to avoid calling thing.slowToString() in release builds.

            busyBee.busyWith(thing.slowToString());
            try {
                thing.process();
            } finally {
                // Espresso will continue
                busyBee.completed(thing.slowToString());
            }

maybe something like:

            // { thing.slowToString() } is only executed when busyBee
            val thingOperationId: OperationId = busyBee.createOperationId { counter -> thing.slowToString(counter) }
            busyBee.busyWith(thingOperationId);
            try {
                thing.process();
            } finally {
                // Espresso will continue
                busyBee.completed(thingOperationId);
            }

sealed class OperationId {
    object NoOp: OperationId()
    class StringOperationId(val operationId: String): OperationId()
}

the noop impl of busybee returns NoOp in release builds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.