Question: Hi i am very new for ios and in my app i am loading Launcher screens they are(Default-568h@2x.png,Default.png,Default@2x.png,Default-414w-736h@3x~iphone.jpeg,Default-375w-667h@2x~iphone.jpeg) ok that's fine

When i run my app 4,5,5s simulators screen is fitting perfectly see my 5s simulator screen

But when i load my app in 6,6s,6plus simulators small little bit gap coming at top and bottom side see my below 6 simulator screen

what is the problem is it sumulator problem or any other problem please guide me

5 inch simulator:-
------------------

[![enter image description here](https://i.stack.imgur.com/Bkrgz.png)](https://i.stack.imgur.com/Bkrgz.png)

6 inch simulator:-
------------------

[![enter image description here](https://i.stack.imgur.com/DtLR9.png)](https://i.stack.imgur.com/DtLR9.png)

Answer: 
You can find a sample in the [example app](https://bitbucket.org/igor_sechyn/hystrixjs/src/fee8b26a6cfd416299633b032b4b40e3aabaed88/example/app/app.js?at=master&fileviewer=file-view-default) in the repo. But also feel free to submit a question on bitbucket and I will try to provide more examples.

In general you can wrap any function that returns a promise, it does not have to be a http request, although it is the most common use case. 

The dashboard is not part of hystrix itself. The way it works, you can run a dashboard locally, see for instructions [here](https://github.com/Netflix/Hystrix/tree/master/hystrix-dashboard) and then add an endpoint to your application to expose the metrics. The example app shows how to do it:

```
function hystrixStreamResponse(request, response) {
    response.append('Content-Type', 'text/event-stream;charset=UTF-8');
    response.append('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate');
    response.append('Pragma', 'no-cache');
    return hystrixStream.toObservable().subscribe(
        function onNext(sseData) {
            response.write('data: ' + sseData + '\n\n');
        },
        function onError(error) {console.log(error);
        },
        function onComplete() {
            return response.end();
        }
    );
};

app.get('/api/hystrix.stream', hystrixStreamResponse);

```

You can then paste the url into the dashboard and it will display your commands.

Let me know if it helps
An abstraction that might help:

```
import {commandFactory} from "hystrixjs";

export const CommandsBuilder = class CommandsBuilder {

    static createMyCommand({runFn, fallbackFn}){
        return commandFactory.getOrCreate("my-command-name")
            .run(runFn)
            .fallbackTo(fallbackFn)
            .build();
    }

};

```

* **runFn**: The function that calls the external service
* **fallbackFn**: The function called if the service is down or slow

More configuration options under **Creating a command** in [Hystrixjs readme](https://bitbucket.org/igor_sechyn/hystrixjs#readme)

I also did a [post](http://tomasalabes.me/blog/nodejs/grpc/reactive/rxjs/graphql/hystrixjs/2018/05/06/circuit-breaking-node-grpc-calls.html) on this.