Dart & Flutter Asynchronous Tutorial using Future API, Await, Async and Then functions #4.4

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 98

  • @gmc254quads6
    @gmc254quads6 6 років тому +67

    This is the best video explaining these concepts in the whole web even outside youtube. 10/10 stars and thanks.

  • @raffaferreira3056
    @raffaferreira3056 3 роки тому

    man, I was about 3 days trying to solve a problem in Dart..and your video explanation saved my life, THANK YOU

  • @JannisAdmek
    @JannisAdmek 5 років тому +10

    that's one of the best content on flutter/dart and on the concept of asynchronous programming, whoever watches this video can use JavaScript's asynchronous features too ( only the key words are a bit different ) thank you very much!

  • @MariusBezuidenhout31337
    @MariusBezuidenhout31337 5 років тому +5

    Great video! It is short and concise. I'm also glad you included the details about ".then", it will clear up a lot of confusion when I encounter that syntax somewhere.

  • @peterg.1075
    @peterg.1075 5 років тому

    The way in which he explained the concept was just marvelous........possibly the best explanation of these concept I have ever encountered.

  • @TheAbhidugar
    @TheAbhidugar 3 роки тому +1

    0:25 cannot find videos on these topics in dart fundamental tutorials.

  • @h.matiin
    @h.matiin 4 роки тому

    Explaining in simple words imply the depth of teacher's understanding . Thank you

  • @almamun2565
    @almamun2565 2 роки тому

    Best tutorial ever to understand Future, async & await

  • @IreshDissanayakaM
    @IreshDissanayakaM 5 років тому +7

    I finally understood. While thanking you a million times. :)

  • @Malaq4822
    @Malaq4822 2 роки тому

    I have never had that great teacher

  • @erivanscerqueira5171
    @erivanscerqueira5171 5 років тому +3

    The best ever explain about Future, Async, Await and Them. Thank you.

  • @siva7930
    @siva7930 3 роки тому +1

    Thank you brother.. I watched nearly 15 videos on asynchronous progmming topic.. This video helped me

  • @hasan8267
    @hasan8267 6 років тому +1

    I couldn't expect i will find this precious content on UA-cam, thanks a lot

    • @smartherd
      @smartherd  6 років тому +1

      few things are priceless: knowledge. Donate if you want more. thanks alot

    • @mohamedgaber5533
      @mohamedgaber5533 5 років тому

      @@smartherd :'''''''''D 2 opposite sentences in one line

  • @achalbadgujar9519
    @achalbadgujar9519 4 роки тому

    Very clean simple explanantion ..good work

  • @MuhammadAdnan-zy1th
    @MuhammadAdnan-zy1th 3 роки тому

    Video is too old but and I've watched it now and till now I didn't understand this concept I've watched many videos of it but they didn't explain it like you finally I got it

  • @fixeroftheinternet
    @fixeroftheinternet 2 роки тому

    Very well explianed with an excellent example. One small criticism, Although it states that the flutter architecture is single threaded, it does not explain how a single thread can operate asynchronously. My suspicion is that it has to multi-threaded, but maybe it does not matter anyway, as the methods described here simply work. VEry good video though. I am subscribing for sure

  • @mohammadalishuvo6329
    @mohammadalishuvo6329 4 роки тому

    I like the way you explain sir , I can say this is the best video explanation about this concept . keep going like this

  • @TahirHoxha
    @TahirHoxha 4 роки тому

    The best video on Future, async, await.

  • @computerpillar8285
    @computerpillar8285 Місяць тому

    i can't find these topics in your dart fundamental video list. do you have a link?

  • @someshsahu4638
    @someshsahu4638 2 роки тому +1

    Very nice explanation thankyou so much 🙏🏼🙏🏼🙏🏼

  • @batishqureshi
    @batishqureshi 2 роки тому

    Beautiful Explanation! Keep it UP!

  • @devshah2401
    @devshah2401 4 роки тому

    Nice and a simplistic way of explaining complex concepts. Great job!

  • @shriyanshraj8425
    @shriyanshraj8425 4 роки тому

    This is the best video explaining these concepts in the whole web even outside youtube. 10/10 stars and thanks.
    (2)

  • @abdullahmajed7554
    @abdullahmajed7554 4 роки тому

    I thought i knew this topic but this video change my mind, i love how you compare it with android that make it really clear
    Great explain 👍🏻

  • @yusufahmed2233
    @yusufahmed2233 4 роки тому +1

    Thank you so very much! This video saved me a lot of time and pain. Kudos to you for making such a wonderful explanation.

  • @nisaljeewantha6552
    @nisaljeewantha6552 2 роки тому

    Perfect Explanation ! ! Thank you So much

  • @hamzataykosturan8704
    @hamzataykosturan8704 10 місяців тому

    Man I am very thankfull to you , perfect explaining and focusing

  • @mudueinstein3053
    @mudueinstein3053 7 місяців тому

    what about isolates ? i think by using isolates we can have 2 threads running parallely.

  • @AkashSingh-cr7ly
    @AkashSingh-cr7ly 5 років тому +6

    i am not able to find your dart video in which you explain about Future, Async, Await??

    • @supun_sandaruwan
      @supun_sandaruwan 5 років тому +1

      yes me too.

    • @pilasatechnet
      @pilasatechnet 4 роки тому +1

      www.smartherd.com/dart-flutter-asynchronous-tutorial/@@supun_sandaruwan it is in the above link

    • @supun_sandaruwan
      @supun_sandaruwan 4 роки тому

      Thanks 💪 🤩 @pilasa

  • @mohammadmujahid8850
    @mohammadmujahid8850 4 роки тому

    Hi ,You have not explained asynchronous programming in dart tutorial as you said at 0:30 , correct me if I am wrong.

    • @AshishKumar-ip5ev
      @AshishKumar-ip5ev 3 роки тому

      I also tried finding, couldn't find. Did you found though?

  • @rohangosavi1182
    @rohangosavi1182 4 роки тому

    Crystal clear 👌

  • @mohamednizam5298
    @mohamednizam5298 4 роки тому

    Can a website extract data from mobile database like sqlite? I want to use the mobile as the main database in which the website only displays the data.

  • @eshanwijetunge2518
    @eshanwijetunge2518 4 роки тому

    Thank you very much Sir. You explained the complex terms very understandable way.

  • @mohanrajraja2896
    @mohanrajraja2896 5 років тому

    Bro I have use case that, once the page is loading I have to get the content from shared preference then to bind the value in a text box, but.. the point of rendering textbox she value is empty because shared preference is a future method so it's getting once all execution and renderings are done.. Please guide me

  • @Jan123.
    @Jan123. 4 роки тому

    So should Then still be used or is Async Await now the better way to code this?

  • @bipindr8625
    @bipindr8625 5 років тому

    Bro finally i can write to files and display data properly thanks

  • @anikroy5290
    @anikroy5290 5 років тому

    Many many thanks. Keep up the good work. Respect from Bangladesh.

  • @mosaed_b
    @mosaed_b 4 роки тому

    So when I am not sure if there will be a result back from Future, is it a good practice to use .then or .catchError over async/await?

  • @leo_messi_fan_forever
    @leo_messi_fan_forever 5 років тому

    Hi Smartherd, can we write apps in flutter that use jsoup library for web scraping? I am thinking of migrating my project into flutter. So I thought of knowing it firsthand. Thanks in advance.

  • @hamzacodes2785
    @hamzacodes2785 4 роки тому

    best flutter tutorials!

  • @MrDyll
    @MrDyll 4 роки тому

    This helped me fix my problem. Thank you brother

  • @rahulvashishth8551
    @rahulvashishth8551 5 років тому

    how can we return or fetch a value from the Future like we do in java. consider at the start of a function i make a long running api call, then in the middle or end when required i get the value from Future when the call completes and make use of the value returned from Future. I saw we can pass a function in then to print the value but can't return the value.

  • @MrSachinkumar502
    @MrSachinkumar502 5 років тому

    Very Clear explanation thanks so much, may be I join your dart programming course later.

  • @govind20246
    @govind20246 4 роки тому

    Simply awesome 👍

  • @moamenkhaled6374
    @moamenkhaled6374 3 роки тому

    A perfect explanation, thanks my friend.

  • @Jan123.
    @Jan123. 4 роки тому

    Well done! Great explanation. Thank you.

  • @yana4887
    @yana4887 5 років тому

    Awesome Explanation Brooooo!

  • @ElNutz2000
    @ElNutz2000 5 років тому

    Great explanation!

  • @mdfiroz2415
    @mdfiroz2415 4 роки тому

    Best explanation. Thanks

  • @kaywansabyr8264
    @kaywansabyr8264 4 роки тому

    Very Clear explanation Thanks bro :)

  • @luthfibalaka8592
    @luthfibalaka8592 3 роки тому

    Thank you very much sir, you explain it really well!

  • @meetr9172
    @meetr9172 5 років тому +1

    Hats off to you brother ... Thanks

  • @florianargaud4449
    @florianargaud4449 5 років тому

    Hi, can we return a double ?

  • @playingerror5949
    @playingerror5949 3 роки тому

    WHEERE DID WE PASS THE RESULTSTRING PARAMETER? IN THEN FUNCTION

  • @hammadpervez4568
    @hammadpervez4568 4 роки тому

    best ever explanation. Thank you so much

  • @sebastiangoin5152
    @sebastiangoin5152 4 роки тому

    Excellent!

  • @3boody738
    @3boody738 5 років тому

    thnaks , but i hear you said i cover this section in my dart fundamental but i watch all of it and did not see any topic like that well , may i'm wrong you may help me by tell me what the number of the video u demonstrate these topics or if i was correct i hope you really demonstrate them there if u could , thanks again you are very Good in explanation

  • @jyothishkm5645
    @jyothishkm5645 5 років тому

    can you make video alaram manager in flutter

  • @chomanthapa
    @chomanthapa 3 роки тому

    Why 6 seconds ? How can I return it as soon as its done instead of using a timer?

    • @heisenberg5873
      @heisenberg5873 3 роки тому

      You can do that but at times your app will be needed to wait till user give some info or wait for a data from api in that case you should use await asyncs to stop your app

  • @raghavaarr4988
    @raghavaarr4988 5 років тому

    Hi need example on where (Linqs)

  • @zakriabilal6792
    @zakriabilal6792 4 роки тому

    thank you very much bro

  • @HarshSingh-hk8fe
    @HarshSingh-hk8fe 4 роки тому

    Superb 🔥💯

  • @sajidislamkhattak6620
    @sajidislamkhattak6620 2 роки тому

    Excellent

  • @chaitanyaharde6238
    @chaitanyaharde6238 5 років тому

    You are good man! Thank you

  • @jongmedellin4890
    @jongmedellin4890 4 роки тому

    hi, i am interested can do 1 on 1 lesson

  • @aldipiero747
    @aldipiero747 5 років тому

    you deserved one subs from me :) thanks a lot sir

  • @SahilKhan-uj7iw
    @SahilKhan-uj7iw 4 роки тому

    koi future bulder explanin krdo please

  • @naimurhasanrwd
    @naimurhasanrwd 4 роки тому

    Can't thank you enough.

  • @abdullahfaiq4891
    @abdullahfaiq4891 6 років тому

    very good tutorial

  • @dhirajdarakhe3808
    @dhirajdarakhe3808 3 роки тому

    thanks

  • @MohamedsamiKhiari
    @MohamedsamiKhiari 4 роки тому

    very good

  • @kavindus
    @kavindus Рік тому

    thanks 🏩

  • @raul286162
    @raul286162 5 років тому

    I love DartPad

  • @florianbrielmaier2135
    @florianbrielmaier2135 6 років тому

    good work. like always on this channel :-)

  • @zakblacki
    @zakblacki 3 роки тому

    You haven't explained stream anywhere

  • @tgbaozkn
    @tgbaozkn 4 роки тому

    I would have liked to see subtitles in English.

  • @raaghavchat2074
    @raaghavchat2074 2 роки тому

    what i have to do if i want to print to Main Program : Starts , The content of the file is --> My secret file content,Main Program: ends

  • @anjukdas4519
    @anjukdas4519 Рік тому

    import 'dart:async';
    main() async {
    print('Start main program');
    await fetchfilecontent();
    print('End main program');
    }
    fetchfilecontent() async {
    Future filecontent = downlodefile();
    print('object is ${await filecontent}');
    }
    Future downlodefile(){
    Future result=Future.delayed(Duration(seconds: 6),(){
    return "this is the Secret File";
    });
    return result;
    }

    • @anjukdas4519
      @anjukdas4519 Рік тому

      is this give the resulted output for me

  • @imankamali5799
    @imankamali5799 4 роки тому +1

    Hey broooo, your training is great
    Learn to connect to mysql
    from.(Iran)

  • @RandalLSchwartz
    @RandalLSchwartz 5 років тому

    Most imports of 'dart:async' have been removed, as many of the functions are now in the auto-imported 'dart:core'.

  • @RandalLSchwartz
    @RandalLSchwartz 5 років тому

    You can in fact have more threads by including Isolates. I know that distracts from your message, but I think you're misleading your viewer.

  • @refreshing_morning
    @refreshing_morning 6 років тому

    Nice video